projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: lttng-snapshot: use after free of max size argument
[lttng-tools.git]
/
tests
/
regression
/
tools
/
filtering
/
test_invalid_filter
diff --git
a/tests/regression/tools/filtering/test_invalid_filter
b/tests/regression/tools/filtering/test_invalid_filter
index f336f71925b378d01e301d4a89880e88a9c527f2..01306123929a843e5531776deb400660e116c3f7 100755
(executable)
--- a/
tests/regression/tools/filtering/test_invalid_filter
+++ b/
tests/regression/tools/filtering/test_invalid_filter
@@
-24,10
+24,10
@@
TESTDIR=$CURDIR/../../..
SESSION_NAME="filter-invalid"
EVENT_NAME="bogus"
ENABLE_EVENT_STDERR="/tmp/invalid-filters-stderr"
SESSION_NAME="filter-invalid"
EVENT_NAME="bogus"
ENABLE_EVENT_STDERR="/tmp/invalid-filters-stderr"
-TRACE_PATH=$(mktemp -
d
)
+TRACE_PATH=$(mktemp -
-tmpdir -d tmp.test_filtering_invalid_filters_trace_path.XXXXXX
)
NUM_GLOBAL_TESTS=2
NUM_GLOBAL_TESTS=2
-NUM_UST_TESTS=13
5
-NUM_KERNEL_TESTS=13
5
+NUM_UST_TESTS=13
8
+NUM_KERNEL_TESTS=13
8
NUM_TESTS=$(($NUM_UST_TESTS+$NUM_KERNEL_TESTS+$NUM_GLOBAL_TESTS))
source $TESTDIR/utils/utils.sh
NUM_TESTS=$(($NUM_UST_TESTS+$NUM_KERNEL_TESTS+$NUM_GLOBAL_TESTS))
source $TESTDIR/utils/utils.sh
@@
-94,6
+94,8
@@
plan_tests $NUM_TESTS
print_test_banner "$TEST_DESC"
print_test_banner "$TEST_DESC"
+bail_out_if_no_babeltrace
+
OLDIFS="$IFS"
IFS=$'\n'
INVALID_FILTERS=(
OLDIFS="$IFS"
IFS=$'\n'
INVALID_FILTERS=(
@@
-151,6
+153,8
@@
INVALID_FILTERS=(
'field > "hello*world"'
'field && "hello*world"'
'field || "hello*world"'
'field > "hello*world"'
'field && "hello*world"'
'field || "hello*world"'
+ # Array expression must contain constant index
+ 'field[abc] == 1'
)
IFS="$OLDIFS"
)
IFS="$OLDIFS"
This page took
0.023775 seconds
and
4
git commands to generate.