# of our test suite to generate events.
function dry_run
{
- trace_path=$(mktemp -d)
+ local trace_path=$(mktemp --tmpdir -d "tmp.${FUNCNAME[0]}_trace_path.XXXXXX")
# Create session
create_lttng_session_ok $SESSION_NAME $trace_path
function test_exclusion
{
- exclusions="$1"
- event_name_expected_to_be_missing="$2"
- trace_path=$(mktemp -d)
+ local exclusions="$1"
+ local event_name_expected_to_be_missing="$2"
+ local trace_path=$(mktemp --tmpdir -d "tmp.${FUNCNAME[0]}_trace_path.XXXXXX")
# Create session
create_lttng_session_ok $SESSION_NAME $trace_path
{
local exclusions="$1"
local event_name_expected_to_be_missing="$2"
- local trace_path=$(mktemp -d)
- local file_wait_before_first=$(mktemp -u)
- local file_create_in_main=$(mktemp -u)
+ local trace_path=$(mktemp --tmpdir -d "tmp.${FUNCNAME[0]}_trace_path.XXXXXX")
+ local file_wait_before_first=$(mktemp --tmpdir -u "tmp.${FUNCNAME[0]}_sync_before_first.XXXXXX")
+ local file_create_in_main=$(mktemp --tmpdir -u "tmp.${FUNCNAME[0]}_sync_create_in_main.XXXXXX")
# Create session
create_lttng_session_ok $SESSION_NAME $trace_path