Tests: Add filtering tests for uncovered cases
[lttng-tools.git] / tests / tools / filtering / invalid-filters
index d0777e583f89767efdfb040650477fcd6e3608a9..b6537055cae7a9dae3d7bed6109daf7058c4a111 100755 (executable)
@@ -118,6 +118,21 @@ INVALID_FILTERS=(
                "!a.f.d"
                "asdf.asdfsd.sadf < 4"
                "asdfasdf->asdfasdf < 2"
+               # String can't be root node
+               "\"somestring\""
+               # Unary op on string not allowed
+               "!\"somestring\""
+               # Comparison with string type not allowed
+               "\"somestring\" > 42"
+               "\"somestring\" > 42.0"
+               "42 > \"somestring\""
+               "42.0 > \"somestring\""
+               # 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))"
                )
 
 start_lttng_sessiond
This page took 0.023277 seconds and 4 git commands to generate.