X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=tests%2Fregression%2Fust%2Fjava-jul%2Ftest_java_jul;h=08214c0ebb8ad25e0521ff350cf7754a335ef79f;hb=d8b43e5c17ec9fc644bcdc8eaceb0e11705eec6e;hp=0859e963fe4aee7f544ea37941ea306fb348282b;hpb=19cb8605c9c4bccde91352765bb235999acda81c;p=lttng-tools.git diff --git a/tests/regression/ust/java-jul/test_java_jul b/tests/regression/ust/java-jul/test_java_jul index 0859e963f..08214c0eb 100755 --- a/tests/regression/ust/java-jul/test_java_jul +++ b/tests/regression/ust/java-jul/test_java_jul @@ -80,7 +80,8 @@ function test_jul_before_start () 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 @@ -296,7 +297,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 @@ -311,7 +313,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