Add () for bitwise and comparator tests
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 22 Sep 2017 00:53:01 +0000 (20:53 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 6 Jun 2018 20:28:14 +0000 (16:28 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
tests/regression/tools/filtering/test_valid_filter

index 722a6f6ad94e6bcc7a6eb3e73d24dac86032d3d5..319204ccf7b4a0549ad5a866f768eae1ecde7972 100755 (executable)
@@ -674,13 +674,13 @@ UST_FILTERS=(
        "1 >= (1 >= (1 >= 1))"
 
        true_statement
-       "0x101 & 0x100 == 0x100"
+       "(0x101 & 0x100) == 0x100"
 
        true_statement
-       "0x101 | 0x10100 == 0x10101"
+       "(0x101 | 0x10100) == 0x10101"
 
        true_statement
-       "0xF00F0F ^ 0xFF0F00 == 0x0F000F"
+       "(0xF00F0F ^ 0xFF0F00) == 0x0F000F"
 
        true_statement
        "(1 << 1) == 2"
@@ -719,19 +719,19 @@ UST_FILTERS=(
        "(1 << 63) == 9223372036854775808"
 
        true_statement
-       "arrfield1[2] & 1 == 1"
+       "(arrfield1[2] & 1) == 1"
 
        true_statement
-       "arrfield1[2] | 0x111000 == 0x111003"
+       "(arrfield1[2] | 0x111000) == 0x111003"
 
        true_statement
        "(arrfield1[0] | arrfield1[1] | arrfield1[2]) == 0x3"
 
        true_statement
-       "seqfield4[2] & 1 == 1"
+       "(seqfield4[2] & 1) == 1"
 
        true_statement
-       "seqfield4[2] | 0x111000 == 0x111003"
+       "(seqfield4[2] | 0x111000) == 0x111003"
 
        true_statement
        "intfield < 0xDEADBEEF"
@@ -1135,13 +1135,13 @@ KERNEL_FILTERS=(
        "1 >= (1 >= (1 >= 1))"
 
        true_statement
-       "0x101 & 0x100 == 0x100"
+       "(0x101 & 0x100) == 0x100"
 
        true_statement
-       "0x101 | 0x10100 == 0x10101"
+       "(0x101 | 0x10100) == 0x10101"
 
        true_statement
-       "0xF00F0F ^ 0xFF0F00 == 0x0F000F"
+       "(0xF00F0F ^ 0xFF0F00) == 0x0F000F"
 
        true_statement
        "(1 << 1) == 2"
@@ -1180,19 +1180,19 @@ KERNEL_FILTERS=(
        "(1 << 63) == 9223372036854775808"
 
        true_statement
-       "arrfield1[2] & 1 == 1"
+       "(arrfield1[2] & 1) == 1"
 
        true_statement
-       "arrfield1[2] | 0x111000 == 0x111003"
+       "(arrfield1[2] | 0x111000) == 0x111003"
 
        true_statement
        "(arrfield1[0] | arrfield1[1] | arrfield1[2]) == 0x3"
 
        true_statement
-       "seqfield4[2] & 1 == 1"
+       "(seqfield4[2] & 1) == 1"
 
        true_statement
-       "seqfield4[2] | 0x111000 == 0x111003"
+       "(seqfield4[2] | 0x111000) == 0x111003"
 
        true_statement
        "intfield < 0xDEADBEEF"
This page took 0.027166 seconds and 4 git commands to generate.