TEST_BIN_NAME="gen-events-time"
SESSION_NAME="ust-nprocesses"
EVENT_NAME="ust_gen_event:tptest"
-TEST_WAIT_SEC=3
+TEST_WAIT_SEC=5
source $TESTDIR/utils.sh
./$CURDIR/$TEST_BIN_NAME 1000 >/dev/null 2>&1 &
done
-echo -n "Validating registered apps: "
+echo -n "Validating registered apps in 3 seconds..."
+
+sleep 3
listing=$($TESTDIR/../src/bin/lttng/$LTTNG_BIN list -u)
reg_app_count=$(echo -n $listing | sed "s/$TEST_BIN_NAME/$TEST_BIN_NAME\n/g" | grep "$TEST_BIN_NAME" | wc -l)
start_tracing $SESSION_NAME
echo "Sleeping $TEST_WAIT_SEC seconds for tracing to start everywhere"
+echo "Warning: this arbitrary time can make the test fail on slower system"
sleep $TEST_WAIT_SEC
stop_tracing $SESSION_NAME