projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update version to 2.0.0 stable
[lttng-tools.git]
/
tests
/
ust-nprocesses
/
run
diff --git
a/tests/ust-nprocesses/run
b/tests/ust-nprocesses/run
index e1f584a2eabc007652fb1f2e8d3de68eee0f5b0f..cab42ef5cb28c458ed95ede066e6243babe6b0fb 100755
(executable)
--- a/
tests/ust-nprocesses/run
+++ b/
tests/ust-nprocesses/run
@@
-21,7
+21,7
@@
NR_ITER=100
TEST_BIN_NAME="gen-events-time"
SESSION_NAME="ust-nprocesses"
EVENT_NAME="ust_gen_event:tptest"
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
source $TESTDIR/utils.sh
@@
-43,7
+43,9
@@
do
./$CURDIR/$TEST_BIN_NAME 1000 >/dev/null 2>&1 &
done
./$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)
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)
@@
-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"
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
sleep $TEST_WAIT_SEC
stop_tracing $SESSION_NAME
This page took
0.024414 seconds
and
4
git commands to generate.