SESSION_NAME="stream"
EVENT_NAME="tp:tptest"
-TRACE_PATH=$(mktemp -d)
+TRACE_PATH=$(mktemp --tmpdir -d tmp.test_streaming_ust_trace_path.XXXXXX)
NUM_TESTS=18
function test_ust_before_start ()
{
- local file_sync_before_last=$(mktemp -u)
+ local file_sync_before_last=$(mktemp --tmpdir -u "tmp.test_${FUNCNAME[0]}_sync_before_last.XXXXXX")
diag "Test UST streaming BEFORE tracing starts"
create_lttng_session_uri $SESSION_NAME net://localhost
function test_ust_after_start ()
{
- local file_sync_after_first=$(mktemp -u)
+ local file_sync_after_first=$(mktemp --tmpdir -u "tmp.test_${FUNCNAME[0]}_sync_after_first.XXXXXX")
diag "Test UST streaming AFTER tracing starts"
create_lttng_session_uri $SESSION_NAME net://localhost