Update version to 2.0.0 stable
[lttng-tools.git] / tests / ust-nprocesses / run
index 4c82eba12fdb4b5596370e54dbdc7aba72f984ec..cab42ef5cb28c458ed95ede066e6243babe6b0fb 100755 (executable)
@@ -21,7 +21,7 @@ NR_ITER=100
 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
 
@@ -43,9 +43,11 @@ do
        ./$CURDIR/$TEST_BIN_NAME 1000 >/dev/null 2>&1 &
 done
 
-echo -n "Validating registered apps"
+echo -n "Validating registered apps in 3 seconds..."
 
-listing=$($TESTDIR/../lttng/$LTTNG_BIN list -u)
+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)
 if [ "$reg_app_count" -ne "$NR_ITER" ]; then
        echo -e "$reg_app_count apps listed. Expected $NR_ITER \e[1;31mFAILED\e[0m"
@@ -61,6 +63,7 @@ enable_ust_lttng_event $SESSION_NAME $EVENT_NAME
 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
This page took 0.025082 seconds and 4 git commands to generate.