projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: test flaky sleep and wait patterns
[lttng-tools.git]
/
tests
/
regression
/
ust
/
java-log4j
/
test_java_log4j
diff --git
a/tests/regression/ust/java-log4j/test_java_log4j
b/tests/regression/ust/java-log4j/test_java_log4j
index b4846c323d625578815b1457ea4153b288e70e80..173d50811705bcce7e3c688f45c428f812e3a640 100755
(executable)
--- a/
tests/regression/ust/java-log4j/test_java_log4j
+++ b/
tests/regression/ust/java-log4j/test_java_log4j
@@
-100,7
+100,7
@@
function test_log4j_before_start ()
start_lttng_tracing $SESSION_NAME
# Wait for the applications started in background
start_lttng_tracing $SESSION_NAME
# Wait for the applications started in background
- wait
${!}
+ wait
stop_lttng_tracing $SESSION_NAME
destroy_lttng_session $SESSION_NAME
stop_lttng_tracing $SESSION_NAME
destroy_lttng_session $SESSION_NAME
@@
-399,8
+399,8
@@
function test_log4j_destroy_session()
# Run 5 times with a 1 second delay
run_app_background 0 1
# Run 5 times with a 1 second delay
run_app_background 0 1
-
- sleep 1
+ # Wait for the applications started in background
+ wait
stop_lttng_tracing $SESSION_NAME
destroy_lttng_session $SESSION_NAME
stop_lttng_tracing $SESSION_NAME
destroy_lttng_session $SESSION_NAME
@@
-415,8
+415,10
@@
function test_log4j_destroy_session()
enable_log4j_lttng_event $SESSION_NAME $EVENT_NAME2
start_lttng_tracing $SESSION_NAME
enable_log4j_lttng_event $SESSION_NAME $EVENT_NAME2
start_lttng_tracing $SESSION_NAME
+ # Run 5 times with a 1 second delay
+ run_app_background 0 1
# Wait for the applications started in background
# Wait for the applications started in background
- wait
${!}
+ wait
stop_lttng_tracing $SESSION_NAME
destroy_lttng_session $SESSION_NAME
stop_lttng_tracing $SESSION_NAME
destroy_lttng_session $SESSION_NAME
This page took
0.0243 seconds
and
4
git commands to generate.