function test_tracefile_size_limit ()
{
local size_limit="$1"
- local trace_path=$(mktemp --tmpdir -d "tmp.${FUNCNAME[0]}_trace_path.XXXXXX")
+ local trace_path=$(mktemp -d -t "tmp.${FUNCNAME[0]}_trace_path.XXXXXX")
local session_name=$(randstring 16 0)
local channel_name="channel"
local event_name="tp:tptest"
{
# Set a size limit lower than the page_size
local size_limit="$(($PAGE_SIZE-2))"
- local trace_path=$(mktemp --tmpdir -d "tmp.${FUNCNAME[0]}_trace_path.XXXXXX")
+ local trace_path=$(mktemp -d -t "tmp.${FUNCNAME[0]}_trace_path.XXXXXX")
local session_name=$(randstring 16 0)
local channel_name="channel"
local event_name="tp:tptest"
print_test_banner "$TEST_DESC"
+bail_out_if_no_babeltrace
+
start_lttng_sessiond
# Test with multiples of PAGE_SIZE