Fix: add missing synchronization point for before app test case
[lttng-tools.git] / tests / regression / tools / snapshots / test_ust_streaming
index 52330a5c9f8362b1625cbe05f17b71a257c5edbf..ef38bd59914d2d648a1b92b17e38f4c0cd5e8bd4 100755 (executable)
@@ -58,7 +58,7 @@ function snapshot_add_output ()
 # Start trace application and return once one event has been hit.
 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 &
@@ -80,8 +80,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=
 }
 
 # Test a snapshot using a default name for the output destination.
This page took 0.02324 seconds and 4 git commands to generate.