X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=tests%2Fregression%2Ftools%2Fnotification%2Ftest_notification_multi_app;h=c1a5158cc542bb03912f862e481c1fb5a6d5d9ac;hb=1e14294fd0ac6ea1b22a27b7b7c10abec2e2d929;hp=eca9688cfea3653f355d241f3bdaea645729b8be;hpb=e212acd4c2761717696994b4491a288691e5e681;p=lttng-tools.git diff --git a/tests/regression/tools/notification/test_notification_multi_app b/tests/regression/tools/notification/test_notification_multi_app index eca9688cf..c1a5158cc 100755 --- a/tests/regression/tools/notification/test_notification_multi_app +++ b/tests/regression/tools/notification/test_notification_multi_app @@ -54,7 +54,7 @@ print_test_banner "$TEST_DESC" app_pids=() -function kernel_event_generator_toogle_state +function kernel_event_generator_toggle_state { kernel_event_generator_suspended=$((kernel_event_generator_suspended==0)) @@ -63,8 +63,8 @@ function kernel_event_generator { state_file=$1 kernel_event_generator_suspended=0 - trap kernel_event_generator_toogle_state SIGUSR1 - trap "exit" SIGTERM SIGINT + trap kernel_event_generator_toggle_state SIGUSR1 + while (true); do if [[ $kernel_event_generator_suspended -eq "1" ]]; then touch $state_file @@ -78,7 +78,7 @@ function kernel_event_generator done } -function ust_event_generator_toogle_state +function ust_event_generator_toggle_state { ust_event_generator_suspended=$((ust_event_generator_suspended==0)) @@ -87,7 +87,7 @@ function ust_event_generator { state_file=$1 ust_event_generator_suspended=0 - trap ust_event_generator_toogle_state SIGUSR1 + trap ust_event_generator_toggle_state SIGUSR1 trap "exit" SIGTERM SIGINT while (true); do if [[ $ust_event_generator_suspended -eq "1" ]]; then @@ -265,7 +265,7 @@ function test_multi_app () resume_consumerd "${pipe}" done # Stop tracing forcing full buffer consumption - stop_lttng_tracing $SESSION_NAME + stop_lttng_tracing_ok $SESSION_NAME # Check for notifications reception wait_for_message $output_dir "${low_output_file_pattern}" "notification: low $i" @@ -474,6 +474,7 @@ TESTS=( ) if [ "$(id -u)" == "0" ]; then + validate_lttng_modules_present TESTS+=( test_multi_app_kernel test_on_register_evaluation_kernel