Tests: port validate_select_poll_epoll.py to bt2 python bindings
[lttng-tools.git] / tests / regression / tools / filtering / test_valid_filter
index ce662180e7dbd615726c6113d6e3fefb1044e2bb..e76ffa25f2480998be378929cda20ef9dde369a4 100755 (executable)
@@ -94,11 +94,10 @@ function test_valid_filter
        event_name="$3"
        filter="$4"
        validator="$5"
+       local trace_path=$(mktemp --tmpdir -d tmp.test_filtering_invalid_filters_trace_path.XXXXXX)
 
        diag "Test valid $domain_name filter: $filter"
 
-       trace_path=$(mktemp -d)
-
        # Create session
        create_lttng_session_ok $SESSION_NAME $trace_path
 
@@ -833,6 +832,16 @@ UST_FILTERS=(
        has_no_event
        "0 == \$ctx.vtid.blah"
 
+       # check that bytecode linker refuses to link against a
+       # non-string array.
+       has_no_event
+       'arrfield1 != "dontmatch"'
+
+       # check that bytecode linker refuses to link against a
+       # non-string sequence.
+       has_no_event
+       'seqfield1 != "dontmatch"'
+
        END
 )
 
@@ -984,16 +993,6 @@ UST_STR_FILTERS=(
        str_has_events
        '"salut vous*" == "salut*"'
 
-       # check that bytecode linker refuses to link against a
-       # non-string array.
-       str_has_no_event
-       'arrfield1 != "dontmatch"'
-
-       # check that bytecode linker refuses to link against a
-       # non-string sequence.
-       str_has_no_event
-       'seqfield1 != "dontmatch"'
-
        ${KIRK_KRAUSS_TESTS[@]}
 
        END
This page took 0.02471 seconds and 4 git commands to generate.