- # BEFORE application is spawned
- create_lttng_session $SESSION_NAME $TRACE_PATH
- enable_ust_lttng_event $SESSION_NAME $EVENT_NAME
- start_lttng_tracing $SESSION_NAME
-
- # Since the start is done after the application is started, there is a
- # bootstrap time needed between the session daemon and the UST tracer.
- # Waiting for the application to end tells us when to stop everything and
- # validate that at least one event is seen.
- wait_app
-
- stop_lttng_tracing $SESSION_NAME
- destroy_lttng_session $SESSION_NAME
+ start_lttng_tracing_ok $SESSION_NAME
+
+ touch ${file_sync_before_last}
+
+ wait
+
+ stop_lttng_tracing_ok $SESSION_NAME
+ destroy_lttng_session_ok $SESSION_NAME
+
+ rm -f ${file_sync_after_first}
+ rm -f ${file_sync_before_last}