X-Git-Url: http://git.efficios.com/?p=lttng-tools.git;a=blobdiff_plain;f=tests%2Fregression%2Ftools%2Ffiltering%2Ftest_invalid_filter;h=f336f71925b378d01e301d4a89880e88a9c527f2;hp=68bbdc18cef8558020ac1e2151e3de9fa524a76f;hb=9d16b343fb9e781fc8d8fa3c448a3f382306dd33;hpb=fc717c6ca1a1116cd7e02835425517f598eacf21 diff --git a/tests/regression/tools/filtering/test_invalid_filter b/tests/regression/tools/filtering/test_invalid_filter index 68bbdc18c..f336f7192 100755 --- a/tests/regression/tools/filtering/test_invalid_filter +++ b/tests/regression/tools/filtering/test_invalid_filter @@ -1,6 +1,8 @@ #!/bin/bash # -# Copyright (C) - 2012 Christian Babeux +# Copyright (C) 2012 Christian Babeux +# +# SPDX-License-Identifier: GPL-2.0-only # # This program is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License, version 2 only, as @@ -19,14 +21,13 @@ TEST_DESC="Filtering - Invalid filters" CURDIR=$(dirname $0)/ TESTDIR=$CURDIR/../../.. -LTTNG_BIN="lttng" SESSION_NAME="filter-invalid" EVENT_NAME="bogus" ENABLE_EVENT_STDERR="/tmp/invalid-filters-stderr" TRACE_PATH=$(mktemp -d) NUM_GLOBAL_TESTS=2 -NUM_UST_TESTS=165 -NUM_KERNEL_TESTS=165 +NUM_UST_TESTS=135 +NUM_KERNEL_TESTS=135 NUM_TESTS=$(($NUM_UST_TESTS+$NUM_KERNEL_TESTS+$NUM_GLOBAL_TESTS)) source $TESTDIR/utils/utils.sh @@ -101,12 +102,6 @@ INVALID_FILTERS=( "intfield/1" "intfield+1" "intfield-1" - "intfield>>1" - "intfield<<1" - "intfield&1" - "intfield|1" - "intfield^1" - "~intfield" "1+11111-3333+1" "(1+2)*(55*666)" "1+2*55*666" @@ -120,9 +115,7 @@ INVALID_FILTERS=( '0 || ("abc" != "def")) && (3 < 4)' "a->" "a-->a" - "a->a" "a.b.c->d.e.f+1" - "asdfasdf->asdfasdf < 2" # String can\'t be root node "\"somestring\"" # Unary op on string not allowed @@ -135,9 +128,6 @@ INVALID_FILTERS=( # Logical operator with string type not allowed "\"somestring\" || 1" "1 || \"somestring\"" - # Nesting of binary operator not allowed - "1 | (1 | (1 | 1))" - "1 > (1 > (1 > 1))" "\$ctx == 0" "0 == \$ctx" # Only \$ctx is supported for now