X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=tests%2Fregression%2Ftools%2Fstreaming%2Ftest_ust;h=4c7ac976f870abc8029b4ddc5d5bbb1b076de6b9;hb=f8ccb5c8e85ec0d0012f53a479ad66227141899a;hp=785a9a8353efe813dc6fd66f318386f8afa3684e;hpb=c0684a0d75e6ec2dba9fd8608140681bbebf39cc;p=lttng-tools.git diff --git a/tests/regression/tools/streaming/test_ust b/tests/regression/tools/streaming/test_ust index 785a9a835..4c7ac976f 100755 --- a/tests/regression/tools/streaming/test_ust +++ b/tests/regression/tools/streaming/test_ust @@ -29,7 +29,7 @@ PID_RELAYD=0 TRACE_PATH=$(mktemp -d) -NUM_TESTS=18 +NUM_TESTS=16 source $TESTDIR/utils/utils.sh @@ -44,13 +44,6 @@ function lttng_create_session_uri ok $? "Create session with default path" } -function wait_apps -{ - while [ -n "$(pidof $TESTAPP_NAME)" ]; do - sleep 0.5 - done - pass "Wait for applications to end" -} # MUST set TESTDIR before calling those functions @@ -64,8 +57,8 @@ function test_ust_before_start () $TESTAPP_BIN $NR_ITER $NR_USEC_WAIT >/dev/null 2>&1 & start_lttng_tracing $SESSION_NAME - - wait_apps + # Wait for the applications started in background + wait ${!} stop_lttng_tracing $SESSION_NAME destroy_lttng_session $SESSION_NAME @@ -79,9 +72,7 @@ function test_ust_after_start () start_lttng_tracing $SESSION_NAME # Run 5 times with a 1 second delay - $TESTAPP_BIN $NR_ITER $NR_USEC_WAIT >/dev/null 2>&1 & - - wait_apps + $TESTAPP_BIN $NR_ITER $NR_USEC_WAIT >/dev/null 2>&1 stop_lttng_tracing $SESSION_NAME destroy_lttng_session $SESSION_NAME