X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=tests%2Fregression%2Ftools%2Fstreaming%2Ftest_ust;h=480717515b49d3add63d213adee981ecfd06a053;hb=a1a2eaea67580d8a2689ec1cdf614abb2520db1f;hp=785a9a8353efe813dc6fd66f318386f8afa3684e;hpb=ea3a3caee08d287beb04385007002d6788d358ee;p=lttng-tools.git diff --git a/tests/regression/tools/streaming/test_ust b/tests/regression/tools/streaming/test_ust index 785a9a835..480717515 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 @@ -63,9 +56,11 @@ function test_ust_before_start () # Run 5 times with a 1 second delay $TESTAPP_BIN $NR_ITER $NR_USEC_WAIT >/dev/null 2>&1 & - start_lttng_tracing $SESSION_NAME + #FIXME: racy missing synchro - wait_apps + start_lttng_tracing $SESSION_NAME + # Wait for the applications started in background + wait stop_lttng_tracing $SESSION_NAME destroy_lttng_session $SESSION_NAME @@ -79,12 +74,15 @@ 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 & + $TESTAPP_BIN $NR_ITER $NR_USEC_WAIT >/dev/null 2>&1 - wait_apps + #FIXME: racy missing synchro stop_lttng_tracing $SESSION_NAME destroy_lttng_session $SESSION_NAME + + # Wait for the applications started in background + wait } plan_tests $NUM_TESTS