local evcount=0
while [ $evcount -ne 10 ]; do
evcount=$(cat $bt_output_path | wc -l)
- sleep 0.5
+ sleep 0.1
done
pass "Live viewer read $evcount events, expect 10"
local evcount=0
while [ $evcount -ne 10 ]; do
evcount=$(wc -l < "$bt_output_path")
- sleep 0.5
+ sleep 0.1
done
pass "Live viewer read $evcount events, expect 10"
local evcount=0
while [ $evcount -ne 12 ]; do
evcount=$(wc -l < "$bt_output_path")
- sleep 0.5
+ sleep 0.1
done
pass "Live viewer read $evcount events, expect 12"
--sync-before-last-event-touch ${file_sync_before_last_touch} \
--sync-before-exit ${file_sync_before_exit} \
--sync-before-exit-touch ${file_sync_before_exit_touch} >/dev/null 2>&1 &
+ local app_pid="${!}"
# Continue only when there is only the last event remaining.
while [ ! -f "${file_sync_before_last_touch}" ]; do
- sleep 0.5
+ sleep 0.1
done
# Take a first snapshot and validate that the events are present.
# 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
+ sleep 0.1
done
# Make sure the snapshot contains the last event.
# Release the application.
touch ${file_sync_before_exit}
- wait
+ wait "${app_pid}"
destroy_lttng_session_ok $SESSION_NAME
rm -f ${file_sync_before_last}