Tests: rotation: add a per-pid size-based rotation test
[lttng-tools.git] / tests / regression / tools / rotation / test_kernel
index 7cd51bc03f0c029e22e36e1fb3c01bed05eef86d..3b7b94fb1d8deff0cf42e878c2967239ef3e5283 100755 (executable)
@@ -10,7 +10,7 @@ CURDIR=$(dirname $0)/
 TESTDIR=$CURDIR/../../..
 EVENT_NAME="lttng_test_filter_event"
 
-TRACE_PATH=$(mktemp -d)
+TRACE_PATH=$(mktemp --tmpdir -d -t tmp.rotation_kernel_tracing.XXXXXX)
 
 NUM_TESTS=60
 
@@ -38,7 +38,7 @@ function rotate_kernel_test ()
 
        destroy_lttng_session_ok $SESSION_NAME
 
-       validate_test_chunks $local_path $today kernel kernel 0
+       validate_test_chunks $local_path $today kernel kernel
 }
 
 function test_kernel_streaming ()
@@ -81,6 +81,7 @@ function test_kernel_streaming_timer ()
 plan_tests $NUM_TESTS
 
 print_test_banner "$TEST_DESC"
+bail_out_if_no_babeltrace
 
 if [ "$(id -u)" == "0" ]; then
        isroot=1
This page took 0.023171 seconds and 4 git commands to generate.