Tests: use babeltrace2 for all tests
[lttng-tools.git] / tests / regression / tools / snapshots / test_ust_streaming
index 2b20ccaf0357ef68c43414aac589b4689d512d72..24e52c4161db2dd8de065ba084174860f883c4df 100755 (executable)
@@ -19,7 +19,7 @@ NR_ITER=-1
 NR_USEC_WAIT=100
 APPS_PID=
 
-TRACE_PATH=$(mktemp -d)
+TRACE_PATH=$(mktemp --tmpdir -d tmp.test_snapshots_ust_streaming_trace_path.XXXXXX)
 
 NUM_TESTS=85
 
@@ -47,7 +47,7 @@ function snapshot_add_output ()
 # Start trace application and return once one event has been hit.
 function start_test_app()
 {
-       local tmp_file=$(mktemp -u)
+       local tmp_file=$(mktemp --tmpdir -u tmp.test_${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 &
@@ -232,6 +232,8 @@ plan_tests $NUM_TESTS
 
 print_test_banner "$TEST_DESC"
 
+bail_out_if_no_babeltrace
+
 if [ "$(id -u)" == "0" ]; then
        isroot=1
 else
This page took 0.024312 seconds and 4 git commands to generate.