+
+ # Wait for the before exit sync point. This ensure that we went over the
+ # last tracepoint.
+ while [ ! -f "${file_sync_before_exit_touch}" ]; do
+ sleep 0.5
+ done
+
+ # Make sure the snapshot contains the last event.
+ lttng_snapshot_record $SESSION_NAME
+ stop_lttng_tracing_ok $SESSION_NAME
+ validate_trace_count $EVENT_NAME $TRACE_PATH 1
+
+ # Release the application.
+ touch ${file_sync_before_exit}