From: Mathieu Desnoyers Date: Fri, 22 Sep 2017 21:14:16 +0000 (-0400) Subject: Filter: Update shifting tests X-Git-Tag: v2.11.0-rc1~171 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=0358f3d86acfd1ccf9dc8d283cb251c56f351730;p=lttng-tools.git Filter: Update shifting tests Signed-off-by: Mathieu Desnoyers Signed-off-by: Jérémie Galarneau --- diff --git a/tests/regression/tools/filtering/test_valid_filter b/tests/regression/tools/filtering/test_valid_filter index 319204ccf..725d82d4a 100755 --- a/tests/regression/tools/filtering/test_valid_filter +++ b/tests/regression/tools/filtering/test_valid_filter @@ -24,8 +24,8 @@ 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=1098 +NUM_KERNEL_TESTS=1032 NUM_TESTS=$(($NUM_UST_TESTS+$NUM_KERNEL_TESTS+$NUM_GLOBAL_TESTS)) source $TESTDIR/utils/utils.sh @@ -706,6 +706,18 @@ UST_FILTERS=( true_statement "-1==~0" + true_statement # unsigned bitwise ops + "~0>>4==0x0fffffffffffffff" + + has_no_event + "1<<-1" + + has_no_event + "1<<10000" + + true_statement # comparator is signed, shift is unsigned + "(1<<63) < 0" + true_statement "1<<1==2" # C99 operator priority: comparator before bitwise @@ -1167,6 +1179,18 @@ KERNEL_FILTERS=( true_statement "-1==~0" + true_statement # unsigned bitwise ops + "~0>>4==0x0fffffffffffffff" + + has_no_event + "1<<-1" + + has_no_event + "1<<10000" + + true_statement # comparator is signed, shift is unsigned + "(1<<63) < 0" + true_statement "1<<1==2" # C99 operator priority: comparator before bitwise