tests: tools/clear/test_ust wait for specific test app pid
[lttng-tools.git] / tests / regression / tools / clear / test_ust
index efff8fcee8dc5b40c872939b37149f5afe301370..378a4ed41f9514a0701fab319c0921a2c79c7593 100755 (executable)
@@ -637,6 +637,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
@@ -680,7 +681,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.0256 seconds and 4 git commands to generate.