- nr_events=$(babeltrace $TRACE_PATH 2>/dev/null | wc -l)
-
- test $nr_events -eq $NUM_EVENT
- ok $? "No event lost with UST blocking mode: found $nr_events expect $NUM_EVENT"
+ test "$(echo "${discarded}" | grep -Eo '[0-9]+')" = "0"
+ ok $? "No event lost with UST blocking mode: ${discarded}"