X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=tests%2Fregression%2Ftools%2Fsnapshots%2Fust_test;h=0a9e244d814b45c2130bbd2e81172d88269290dd;hb=0154fa5b32aeaa4d2e5c6ae9958e0b0d1e2d38c4;hp=128849ef8ce7c87618aea7d361803c79ab38307a;hpb=7f063088e12d99c76f361dcd76bf26a66449bdd2;p=lttng-tools.git diff --git a/tests/regression/tools/snapshots/ust_test b/tests/regression/tools/snapshots/ust_test index 128849ef8..0a9e244d8 100755 --- a/tests/regression/tools/snapshots/ust_test +++ b/tests/regression/tools/snapshots/ust_test @@ -63,11 +63,13 @@ function start_test_app() rm -f $tmp_file } -function kill_test_app() +function stop_test_app() { diag "Killing $TESTAPP_NAME" PID_APP=`pidof $TESTAPP_NAME` kill $PID_APP >/dev/null 2>&1 + diag "Waiting on $TESTAPP_NAME" + wait } function snapshot_add_output () @@ -170,7 +172,7 @@ function test_ust_local_snapshot () rm -rf $TRACE_PATH fi - kill_test_app + stop_test_app } function test_ust_local_snapshot_max_size () @@ -218,7 +220,7 @@ function test_ust_local_snapshot_max_size () rm -rf $TRACE_PATH fi - kill_test_app + stop_test_app } function test_ust_local_snapshot_large_metadata () @@ -280,7 +282,7 @@ function test_ust_per_uid_local_snapshot () rm -rf $TRACE_PATH fi - kill_test_app + stop_test_app } function test_ust_per_uid_local_snapshot_post_mortem () @@ -294,7 +296,7 @@ function test_ust_per_uid_local_snapshot_post_mortem () # Returns once the application has at least fired ONE tracepoint. start_test_app - kill_test_app + stop_test_app lttng_snapshot_record $SESSION_NAME stop_lttng_tracing $SESSION_NAME @@ -334,7 +336,7 @@ function test_ust_local_snapshots () stop_lttng_tracing $SESSION_NAME destroy_lttng_session $SESSION_NAME - kill_test_app + stop_test_app } plan_tests $NUM_TESTS