Fix: add missing synchronization point for before app test case
[lttng-tools.git] / tests / regression / tools / snapshots / ust_test
index 4ef9f5848cffb7ccd4f33171ac33305194b19414..cbc205828149a268bdec70121eb7486dee1e2719 100755 (executable)
@@ -49,7 +49,7 @@ NUM_TESTS=$(($NUM_TESTS + ($NR_SNAPSHOT * 2)))
 
 function start_test_app()
 {
-       local tmp_file="/tmp/lttng_test_ust.42.file"
+       local tmp_file=$(mktemp -u)
 
        # Start application with a temporary file.
        $TESTAPP_BIN $NR_ITER $NR_USEC_WAIT $tmp_file &
@@ -71,8 +71,9 @@ function stop_test_apps()
        diag "Stopping $TESTAPP_NAME"
        for p in ${APPS_PID}; do
                kill ${p}
-               wait ${p} 2>&1
+               wait ${p} 2>/dev/null
        done
+       APPS_PID=
 }
 
 function snapshot_add_output ()
This page took 0.023102 seconds and 4 git commands to generate.