X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=tests%2Fust%2Foverlap%2Foverlap.sh;fp=tests%2Fust%2Foverlap%2Foverlap.sh;h=6baf7c8786227a1427fa3e926b0172e2b6c3fd40;hp=eed949d2c83aa3c4983702dbd6a8aa55431d2666;hb=f8014aa39d085d8d0bfbe8a6bf103733feff7bf6;hpb=228b5bf7fa0bd5cf9e709717e578e28bccd57a73 diff --git a/tests/ust/overlap/overlap.sh b/tests/ust/overlap/overlap.sh index eed949d2c..6baf7c878 100755 --- a/tests/ust/overlap/overlap.sh +++ b/tests/ust/overlap/overlap.sh @@ -45,15 +45,15 @@ run_demo_app() { local dir=`pwd` - cd demo + cd $CURDIR/demo # Start test echo -n "Starting application... " - ./$CURDIR/demo-trace >/dev/null 2>&1 + ./demo-trace >/dev/null 2>&1 echo -n "Ended " print_ok - cd $dir + cd - } # Ease our life a bit ;) @@ -315,6 +315,12 @@ test_enable_same_wildcard_filter_2() enable_ust_lttng_event_filter $SESSION_NAME $event_wild1 "1==1" enable_ust_lttng_event_filter $SESSION_NAME $event_wild2 "1==1" + if [ $? -eq 1 ]; then + echo -n "FAIL is normal. Same event with same filter is denied by the sessiond " + print_ok + else + print_fail + fi start_lttng_tracing $SESSION_NAME >/dev/null 2>&1