X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=tests%2Ftools%2Ffiltering%2Finvalid-filters;h=b6537055cae7a9dae3d7bed6109daf7058c4a111;hp=d0777e583f89767efdfb040650477fcd6e3608a9;hb=ef049beed75d56a90fcc522288da44c7307f3080;hpb=b2a325c4360993fd3789a168c2225ec239fa149e diff --git a/tests/tools/filtering/invalid-filters b/tests/tools/filtering/invalid-filters index d0777e583..b6537055c 100755 --- a/tests/tools/filtering/invalid-filters +++ b/tests/tools/filtering/invalid-filters @@ -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