From: Mathieu Desnoyers Date: Mon, 25 May 2020 20:19:18 +0000 (-0400) Subject: Tests: array expressions without contant index are invalid X-Git-Tag: v2.13.0-rc1~112 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=c6ec013de9ee66ed4e112be6aa4faccdaf0cba80;p=lttng-tools.git Tests: array expressions without contant index are invalid Signed-off-by: Mathieu Desnoyers Signed-off-by: Jérémie Galarneau Change-Id: I121387b63eb85851be59416c758b7ca12f823f45 --- diff --git a/tests/regression/tools/filtering/test_invalid_filter b/tests/regression/tools/filtering/test_invalid_filter index f336f7192..074786331 100755 --- a/tests/regression/tools/filtering/test_invalid_filter +++ b/tests/regression/tools/filtering/test_invalid_filter @@ -26,8 +26,8 @@ EVENT_NAME="bogus" ENABLE_EVENT_STDERR="/tmp/invalid-filters-stderr" TRACE_PATH=$(mktemp -d) NUM_GLOBAL_TESTS=2 -NUM_UST_TESTS=135 -NUM_KERNEL_TESTS=135 +NUM_UST_TESTS=138 +NUM_KERNEL_TESTS=138 NUM_TESTS=$(($NUM_UST_TESTS+$NUM_KERNEL_TESTS+$NUM_GLOBAL_TESTS)) source $TESTDIR/utils/utils.sh @@ -151,6 +151,8 @@ INVALID_FILTERS=( 'field > "hello*world"' 'field && "hello*world"' 'field || "hello*world"' + # Array expression must contain constant index + 'field[abc] == 1' ) IFS="$OLDIFS"