tests: tools/clear/test_ust wait for specific test app pid
[lttng-tools.git] / tests / regression / tools / clear / test_ust
index f825e6321017ac6314e11bbe5796b50c25a69732..8bd8b32200cb72f0755638099d47e19c2f50e253 100755 (executable)
@@ -639,6 +639,7 @@ function test_ust_local_snapshot_per_pid ()
                --sync-before-last-event-touch ${file_sync_before_last_touch} \
                --sync-before-exit ${file_sync_before_exit} \
                --sync-before-exit-touch ${file_sync_before_exit_touch} >/dev/null 2>&1 &
+       local app_pid="${!}"
 
        # Continue only when there is only the last event remaining.
        while [ ! -f "${file_sync_before_last_touch}" ]; do
@@ -682,7 +683,7 @@ function test_ust_local_snapshot_per_pid ()
 
        # Release the application.
        touch ${file_sync_before_exit}
-       wait
+       wait "${app_pid}"
        destroy_lttng_session_ok $SESSION_NAME
 
        rm -f ${file_sync_before_last}
This page took 0.024284 seconds and 4 git commands to generate.