X-Git-Url: http://git.efficios.com/?p=lttng-tools.git;a=blobdiff_plain;f=tests%2Fregression%2Ftools%2Ffiltering%2Ftest_valid_filter;h=9a9e31c83aaea4b64f6e8e9ad18e660a1f40e1d4;hp=a62cc1ef289447c5c9d7635a4173fb0b8b2b13b8;hb=e563bbdb8fa6592790e9ac4e9db7d9decf022023;hpb=9d806fbf7a6806b79cfddba58ced01441c1bf188 diff --git a/tests/regression/tools/filtering/test_valid_filter b/tests/regression/tools/filtering/test_valid_filter index a62cc1ef2..9a9e31c83 100755 --- a/tests/regression/tools/filtering/test_valid_filter +++ b/tests/regression/tools/filtering/test_valid_filter @@ -25,7 +25,7 @@ STATS_BIN="$TESTDIR/utils/babelstats.pl" SESSION_NAME="valid_filter" EVENT_NAME="tp:tptest" NR_ITER=100 -NUM_TESTS=338 +NUM_TESTS=290 source $TESTDIR/utils/utils.sh @@ -46,15 +46,7 @@ function enable_ust_lttng_event_filter() function run_apps { - ./$CURDIR/$BIN_NAME $NR_ITER & >/dev/null 2>&1 -} - -function wait_apps -{ - while [ -n "$(pidof $BIN_NAME)" ]; do - sleep 1 - done - pass "Wait for application end" + ./$CURDIR/$BIN_NAME $NR_ITER >/dev/null 2>&1 } function test_valid_filter @@ -67,15 +59,14 @@ function test_valid_filter trace_path=$(mktemp -d) # Create session - create_lttng_session $SESSION_NAME $trace_path + create_lttng_session_ok $SESSION_NAME $trace_path # Enable filter enable_ust_lttng_event_filter $SESSION_NAME $EVENT_NAME $filter # Trace apps - start_lttng_tracing $SESSION_NAME + start_lttng_tracing_ok $SESSION_NAME run_apps - wait_apps stop_lttng_tracing $SESSION_NAME # Destroy session