Tests: array expressions without contant index are invalid
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 25 May 2020 20:19:18 +0000 (16:19 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 11 May 2021 17:27:08 +0000 (13:27 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: Iaff8d199295359aae9d82d645a30f6b3bf81212b

tests/regression/tools/filtering/test_invalid_filter

index 066a0e5745bfc2f99b0a15cccf1e8351496bde30..440c0dd7241d6f19075235bc0acaa558ac8f627b 100755 (executable)
@@ -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"
 
This page took 0.026996 seconds and 4 git commands to generate.