Fix: add delay before validating apps in test nproc
[lttng-tools.git] / tests / ust-nprocesses / run
index 4c82eba12fdb4b5596370e54dbdc7aba72f984ec..ae49931f814f401110f43cce6fd0f1dfc1f8526f 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"
This page took 0.062709 seconds and 4 git commands to generate.