Fix: tests: add missing wait, document missing synchro
[lttng-tools.git] / tests / regression / ust / java-jul / test_java_jul
index 421c0f51f5e8f387f906d35dd8ad8683281c3bf1..b707a6d4c201fc551ea93ec63ec01f3227c00d2a 100755 (executable)
@@ -88,9 +88,12 @@ function test_jul_before_start ()
        # Run 5 times with a 1 second delay
        run_app
 
+       #FIXME: racy missing synchronization
+
        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
@@ -342,7 +345,8 @@ function test_jul_destroy_session()
        # Run 5 times with a 1 second delay
        run_app 0 1
 
-       sleep 1
+       # Wait for the applications started in background
+       wait
 
        stop_lttng_tracing $SESSION_NAME
        destroy_lttng_session $SESSION_NAME
@@ -357,7 +361,11 @@ function test_jul_destroy_session()
        enable_jul_lttng_event $SESSION_NAME $EVENT_NAME2
        start_lttng_tracing $SESSION_NAME
 
-       wait_apps
+       # Run 5 times with a 1 second delay
+       run_app_background 0 1
+
+       # Wait for the applications started in background
+       wait
 
        stop_lttng_tracing $SESSION_NAME
        destroy_lttng_session $SESSION_NAME
This page took 0.023319 seconds and 4 git commands to generate.