From 941a9044672096b2df85c3b1410e87405cc5d3c7 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Mon, 25 May 2020 16:19:18 -0400 Subject: [PATCH] Tests: array expressions without contant index are invalid MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Mathieu Desnoyers Signed-off-by: Jérémie Galarneau Change-Id: Iaff8d199295359aae9d82d645a30f6b3bf81212b --- tests/regression/tools/filtering/test_invalid_filter | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/regression/tools/filtering/test_invalid_filter b/tests/regression/tools/filtering/test_invalid_filter index 066a0e574..440c0dd72 100755 --- a/tests/regression/tools/filtering/test_invalid_filter +++ b/tests/regression/tools/filtering/test_invalid_filter @@ -24,8 +24,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 @@ -149,6 +149,8 @@ INVALID_FILTERS=( 'field > "hello*world"' 'field && "hello*world"' 'field || "hello*world"' + # Array expression must contain constant index + 'field[abc] == 1' ) IFS="$OLDIFS" -- 2.34.1