Clean-up: modernize pretty_xml.cpp
[lttng-tools.git] / tests / regression / ust / low-throughput / test_low_throughput
index 66ed8950fd73648a294ad68842d8b9e839b662ec..2861324f2d303b2d1c19aee2a60f28398d09988b 100755 (executable)
@@ -19,7 +19,7 @@ if [ ! -x "$CURDIR/$BIN_NAME" ]; then
        BAIL_OUT "No UST nevents binary detected."
 fi
 
-TRACE_PATH=$(mktemp --tmpdir -d tmp.test_low_throughput_ust_trace_path.XXXXXX)
+TRACE_PATH=$(mktemp -d -t tmp.test_low_throughput_ust_trace_path.XXXXXX)
 
 # MUST set TESTDIR before calling those functions
 
@@ -27,6 +27,8 @@ plan_tests $NUM_TESTS
 
 print_test_banner "$TEST_DESC"
 
+bail_out_if_no_babeltrace
+
 start_lttng_sessiond
 
 create_lttng_session_ok $SESSION_NAME $TRACE_PATH
@@ -47,7 +49,7 @@ stop_lttng_sessiond
 last_val=0
 out=0
 
-babeltrace $TRACE_PATH | while read event;
+"$BABELTRACE_BIN" $TRACE_PATH | while read event;
 do
        val=$(echo $event | cut -f10 -d" ")
        val=${val%?}
This page took 0.035503 seconds and 4 git commands to generate.