X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=tests%2Fregression%2Ftools%2Ffiltering%2Ftest_valid_filter;h=2c146fe7b026538856d5b5e5ea936940dc6eb55f;hb=4d513dce5d26cbc477a00b348beb537d01231cd9;hp=319204ccf7b4a0549ad5a866f768eae1ecde7972;hpb=cea52dd840acdde397e68926741e47eff5f7fa1d;p=lttng-tools.git diff --git a/tests/regression/tools/filtering/test_valid_filter b/tests/regression/tools/filtering/test_valid_filter index 319204ccf..2c146fe7b 100755 --- a/tests/regression/tools/filtering/test_valid_filter +++ b/tests/regression/tools/filtering/test_valid_filter @@ -19,13 +19,12 @@ TEST_DESC="Filtering - Valid filters" CURDIR=$(dirname $0)/ TESTDIR=$CURDIR/../../.. -LTTNG_BIN="lttng" STATS_BIN="$TESTDIR/utils/babelstats.pl" SESSION_NAME="valid_filter" NR_ITER=100 NUM_GLOBAL_TESTS=2 -NUM_UST_TESTS=1074 -NUM_KERNEL_TESTS=1008 +NUM_UST_TESTS=1110 +NUM_KERNEL_TESTS=1044 NUM_TESTS=$(($NUM_UST_TESTS+$NUM_KERNEL_TESTS+$NUM_GLOBAL_TESTS)) source $TESTDIR/utils/utils.sh @@ -706,11 +705,29 @@ UST_FILTERS=( true_statement "-1==~0" - true_statement - "1<<1==2" # C99 operator priority: comparator before bitwise + true_statement # unsigned bitwise ops + "~0>>4==0x0fffffffffffffff" + + has_no_event + "1<<-1" has_no_event - "!(1<<1==2)" # C99 operator priority: comparator before bitwise + "1<<10000" + + true_statement # comparator is signed, shift is unsigned + "(1<<63) < 0" + + true_statement + "(1<<2!=4)==0" # operator priority: shift before equality + + true_statement + "1&3==1" # operator priority: masks before equality + + true_statement + "(3|1==3)==1" # operator priority: masks before equality + + true_statement + "(2^1==3)==1" # operator priority: masks before equality true_statement "(1 << 32) == 4294967296" @@ -1167,11 +1184,29 @@ KERNEL_FILTERS=( true_statement "-1==~0" - true_statement - "1<<1==2" # C99 operator priority: comparator before bitwise + true_statement # unsigned bitwise ops + "~0>>4==0x0fffffffffffffff" + + has_no_event + "1<<-1" has_no_event - "!(1<<1==2)" # C99 operator priority: comparator before bitwise + "1<<10000" + + true_statement # comparator is signed, shift is unsigned + "(1<<63) < 0" + + true_statement + "(1<<2!=4)==0" # operator priority: shift before equality + + true_statement + "1&3==1" # operator priority: masks before equality + + true_statement + "(3|1==3)==1" # operator priority: masks before equality + + true_statement + "(2^1==3)==1" # operator priority: masks before equality true_statement "(1 << 32) == 4294967296"