Cleanup: tests: name all temporary files to better identify leakage
[lttng-tools.git] / tests / regression / tools / snapshots / ust_test
index 8daaa045d125a5255f7e02ba36ff4c38488561e7..54365c3eacde059d477581c4d0819568c367a8f1 100755 (executable)
@@ -18,7 +18,7 @@ APPS_PID=
 
 NUM_TESTS=105
 
-TRACE_PATH=$(mktemp -d)
+TRACE_PATH=$(mktemp --tmpdir -d tmp.test_snapshots_ust_trace_path.XXXXXX)
 
 source $TESTDIR/utils/utils.sh
 
@@ -36,7 +36,7 @@ NUM_TESTS=$(($NUM_TESTS + ($NR_SNAPSHOT * 3)))
 
 function start_test_app()
 {
-       local tmp_file=$(mktemp -u)
+       local tmp_file=$(mktemp --tmpdir -u "tmp.${FUNCNAME[0]}_tmp_file.XXXXXX")
 
        # Start application with a temporary file.
        $TESTAPP_BIN -i $NR_ITER -w $NR_USEC_WAIT --sync-after-first-event $tmp_file &
This page took 0.024143 seconds and 4 git commands to generate.