Tests: size-based rotation: implement a trace size cutoff protection
[lttng-tools.git] / tests / regression / tools / rotation / test_kernel
index 62bc5c33d7fda975b4a6294b4ade05d395e398c9..760930e958a506754fafd9b7689d662910431355 100755 (executable)
@@ -96,7 +96,8 @@ function test_kernel_local_size ()
        lttng_enable_rotation_size_ok $SESSION_NAME $size_threshold
        start_lttng_tracing_ok $SESSION_NAME
 
-       trace_until_n_archives produce_n_events "$TRACE_PATH" 5
+       # Cutoff at 100 times the expected size
+       trace_until_n_archives produce_n_events "$TRACE_PATH" 5 $((5 * 100 * size_threshold))
 
        destroy_lttng_session_ok $SESSION_NAME
 }
This page took 0.022863 seconds and 4 git commands to generate.