Fix: tests: add missing wait, document missing synchro
[lttng-tools.git] / tests / regression / tools / streaming / test_ust
index 785a9a8353efe813dc6fd66f318386f8afa3684e..d96db9460f0c88b33259828a2e640d7da707e69f 100755 (executable)
@@ -29,7 +29,7 @@ PID_RELAYD=0
 
 TRACE_PATH=$(mktemp -d)
 
-NUM_TESTS=18
+NUM_TESTS=16
 
 source $TESTDIR/utils/utils.sh
 
@@ -63,9 +63,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
@@ -83,8 +85,13 @@ function test_ust_after_start ()
 
        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
This page took 0.023544 seconds and 4 git commands to generate.