X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=tests%2Fregression%2Ftools%2Fclear%2Ftest_ust;fp=tests%2Fregression%2Ftools%2Fclear%2Ftest_ust;h=378a4ed41f9514a0701fab319c0921a2c79c7593;hb=f03ea3f43450abb1a1ea704044e1e8c78cfc0b4c;hp=efff8fcee8dc5b40c872939b37149f5afe301370;hpb=283c6fa6cc573166ec4e41b70a9db57f8356f4aa;p=lttng-tools.git diff --git a/tests/regression/tools/clear/test_ust b/tests/regression/tools/clear/test_ust index efff8fcee..378a4ed41 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}