X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=tests%2Fregression%2Ftools%2Fclear%2Ftest_ust;fp=tests%2Fregression%2Ftools%2Fclear%2Ftest_ust;h=27af7becac06987a5eb149494ade2cbb167f497d;hp=519671ce39c0fe7487cf673af1e097d0f2579f26;hb=becd029c4fda2dc6478751f4d45fa6b68a1d6120;hpb=dff46b736afb7945aaf635de661b920dd0d01d7f diff --git a/tests/regression/tools/clear/test_ust b/tests/regression/tools/clear/test_ust index 519671ce3..27af7beca 100755 --- a/tests/regression/tools/clear/test_ust +++ b/tests/regression/tools/clear/test_ust @@ -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}