Gen-ust-events: use options instead of arguments
[lttng-tools.git] / tests / regression / tools / crash / test_crash
index 8c62c513ddb95585270d3ddf03c47fa669abdd6f..97b94a8a9e06f32c401f9a5880d564870a7be3e8 100755 (executable)
@@ -48,7 +48,7 @@ function start_test_app()
        local tmp_file=$(mktemp -u)
 
        # Start application with a temporary file.
-       $TESTAPP_BIN $NR_ITER $NR_USEC_WAIT $tmp_file &
+       $TESTAPP_BIN -i $NR_ITER -w $NR_USEC_WAIT --sync-after-first-event $tmp_file &
        ret=$?
        APPS_PID="${APPS_PID} ${!}"
        ok $ret "Start application to trace"
@@ -232,7 +232,7 @@ function test_lttng_crash()
        start_lttng_tracing_ok $session_name
 
        # Generate 10 events
-       $TESTAPP_BIN 10 0
+       $TESTAPP_BIN -i 10 -w 0
        stop_lttng_tracing
 
        crash_recup_count=$($LTTNG_CRASH $shm_path | wc -l)
@@ -270,7 +270,7 @@ function test_lttng_crash_extraction()
 
        start_lttng_tracing_ok $session_name
        # Generate 10 events
-       $TESTAPP_BIN 10 0
+       $TESTAPP_BIN -i 10 -w 0
        stop_lttng_tracing
 
        $LTTNG_CRASH -x $extraction_path $shm_path
@@ -366,7 +366,7 @@ function test_lttng_crash_extraction_sigkill()
        start_lttng_tracing_ok $session_name
 
        # Generate 10 events
-       $TESTAPP_BIN 10 0
+       $TESTAPP_BIN -i 10 -w 0
 
        sigstop_lttng_sessiond
        sigstop_lttng_consumerd
This page took 0.024685 seconds and 5 git commands to generate.