# Start trace application and return once one event has been hit.
function start_test_app()
{
- local tmp_file="/tmp/lttng_test_ust.42.file"
+ local tmp_file=$(mktemp -u)
# Start application with a temporary file.
$TESTAPP_BIN $NR_ITER $NR_USEC_WAIT $tmp_file &
diag "Stopping $TESTAPP_NAME"
for p in ${APPS_PID}; do
kill ${p}
- wait ${p} 2>&1
+ wait ${p} 2>/dev/null
done
+ APPS_PID=
}
# Test a snapshot using a default name for the output destination.