X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=tests%2Fregression%2Fust%2Fjava-log4j%2Ftest_java_log4j;h=9fd059447d041081c661763307a009afe88a54c7;hp=6abc12fe301e4325caa908c87fc902ba91af99d9;hb=96340a015194538227efcbc654ec02c2ed9961ce;hpb=e563bbdb8fa6592790e9ac4e9db7d9decf022023 diff --git a/tests/regression/ust/java-log4j/test_java_log4j b/tests/regression/ust/java-log4j/test_java_log4j index 6abc12fe3..9fd059447 100755 --- a/tests/regression/ust/java-log4j/test_java_log4j +++ b/tests/regression/ust/java-log4j/test_java_log4j @@ -108,7 +108,7 @@ function test_log4j_before_start () # Wait for the applications started in background wait - stop_lttng_tracing $SESSION_NAME + stop_lttng_tracing_ok $SESSION_NAME destroy_lttng_session $SESSION_NAME rm -f ${file_sync_after_first} @@ -132,7 +132,7 @@ function test_log4j_after_start () # Run 5 times with a 1 second delay run_app - stop_lttng_tracing $SESSION_NAME + stop_lttng_tracing_ok $SESSION_NAME destroy_lttng_session $SESSION_NAME # Validate test. Expecting all events. @@ -153,7 +153,7 @@ function test_log4j_loglevel () # Run 5 times with a 1 second delay run_app - stop_lttng_tracing $SESSION_NAME + stop_lttng_tracing_ok $SESSION_NAME destroy_lttng_session $SESSION_NAME # Validate test. Expecting all events. @@ -171,7 +171,7 @@ function test_log4j_loglevel () # Run 5 times with a 1 second delay run_app - stop_lttng_tracing $SESSION_NAME + stop_lttng_tracing_ok $SESSION_NAME destroy_lttng_session $SESSION_NAME # Validate test. Expecting 0 events. @@ -189,7 +189,7 @@ function test_log4j_loglevel () # Run 5 times with a 1 second delay run_app - stop_lttng_tracing $SESSION_NAME + stop_lttng_tracing_ok $SESSION_NAME destroy_lttng_session $SESSION_NAME # Validate test. Expecting all events. @@ -209,7 +209,7 @@ function test_log4j_loglevel_multiple () # Run 5 times with a 1 second delay and fire two TP. run_app 1 - stop_lttng_tracing $SESSION_NAME + stop_lttng_tracing_ok $SESSION_NAME destroy_lttng_session $SESSION_NAME # Validate test. Expecting all events times two. @@ -226,7 +226,7 @@ function test_log4j_loglevel_multiple () # Run 5 times with a 1 second delay and fire two TP. run_app 1 - stop_lttng_tracing $SESSION_NAME + stop_lttng_tracing_ok $SESSION_NAME destroy_lttng_session $SESSION_NAME # Validate test. Expecting all events times two. @@ -251,8 +251,8 @@ function test_log4j_multi_session_loglevel() # Run 5 times with a 1 second delay and fire second TP. run_app 1 1 - stop_lttng_tracing $SESSION_NAME-1 - stop_lttng_tracing $SESSION_NAME-2 + stop_lttng_tracing_ok $SESSION_NAME-1 + stop_lttng_tracing_ok $SESSION_NAME-2 destroy_lttng_session $SESSION_NAME-1 destroy_lttng_session $SESSION_NAME-2 @@ -286,8 +286,8 @@ function test_log4j_multi_session_disable() # Run 5 times with a 1 second delay and fire second TP. run_app 0 1 - stop_lttng_tracing $SESSION_NAME-1 - stop_lttng_tracing $SESSION_NAME-2 + stop_lttng_tracing_ok $SESSION_NAME-1 + stop_lttng_tracing_ok $SESSION_NAME-2 destroy_lttng_session $SESSION_NAME-1 destroy_lttng_session $SESSION_NAME-2 @@ -321,8 +321,8 @@ function test_log4j_multi_session_disable_wildcard() run_app - stop_lttng_tracing $SESSION_NAME-1 - stop_lttng_tracing $SESSION_NAME-2 + stop_lttng_tracing_ok $SESSION_NAME-1 + stop_lttng_tracing_ok $SESSION_NAME-2 destroy_lttng_session $SESSION_NAME-1 destroy_lttng_session $SESSION_NAME-2 @@ -354,7 +354,7 @@ function test_log4j_disable_all() run_app 0 1 - stop_lttng_tracing $SESSION_NAME + stop_lttng_tracing_ok $SESSION_NAME destroy_lttng_session $SESSION_NAME # Validate test. Expecting NO event of the first TP and second TP. @@ -380,8 +380,8 @@ function test_log4j_multi_session() # Run 5 times with a 1 second delay and fire second TP. run_app 0 1 - stop_lttng_tracing $SESSION_NAME-1 - stop_lttng_tracing $SESSION_NAME-2 + stop_lttng_tracing_ok $SESSION_NAME-1 + stop_lttng_tracing_ok $SESSION_NAME-2 destroy_lttng_session $SESSION_NAME-1 destroy_lttng_session $SESSION_NAME-2 @@ -411,7 +411,7 @@ function test_log4j_destroy_session() # Wait for the applications started in background wait - stop_lttng_tracing $SESSION_NAME + stop_lttng_tracing_ok $SESSION_NAME destroy_lttng_session $SESSION_NAME # Validate test. Expecting at least one event num 1 @@ -429,7 +429,7 @@ function test_log4j_destroy_session() # Wait for the applications started in background wait - stop_lttng_tracing $SESSION_NAME + stop_lttng_tracing_ok $SESSION_NAME destroy_lttng_session $SESSION_NAME # Validate test. Expecting only one event num 2 @@ -451,7 +451,7 @@ function test_log4j_filtering() # Run 5 times with a 1 second delay and fire second TP. run_app 0 1 - stop_lttng_tracing $SESSION_NAME + stop_lttng_tracing_ok $SESSION_NAME destroy_lttng_session $SESSION_NAME # Validate test. Expecting one event of the second TP only. @@ -469,7 +469,7 @@ function test_log4j_filtering() # Run 5 times with a 1 second delay, fire debug and second TP. run_app 1 1 - stop_lttng_tracing $SESSION_NAME + stop_lttng_tracing_ok $SESSION_NAME destroy_lttng_session $SESSION_NAME # Validate test. Expecting NR_ITER event of the main INFO tp. @@ -493,7 +493,7 @@ function test_log4j_disable() # Run 5 times with a 1 second delay and fire second TP. run_app 0 1 - stop_lttng_tracing $SESSION_NAME + stop_lttng_tracing_ok $SESSION_NAME destroy_lttng_session $SESSION_NAME # Validate test. Expecting one event of the second TP only. @@ -517,7 +517,7 @@ function test_log4j_disable_enable() # Run 5 times with a 1 second delay and fire second TP. run_app 0 1 - stop_lttng_tracing $SESSION_NAME + stop_lttng_tracing_ok $SESSION_NAME destroy_lttng_session $SESSION_NAME # Validate test. Expecting NR_ITER event of the main INFO tp. @@ -545,7 +545,7 @@ function test_log4j_filter_loglevel() # Run 5 times with a 1 second delay and fire second TP. run_app 0 1 - stop_lttng_tracing $SESSION_NAME + stop_lttng_tracing_ok $SESSION_NAME destroy_lttng_session $SESSION_NAME # Validate test. Expecting no events.