X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=tests%2Fregression%2Ftools%2Fnotification%2Ftest_notification_kernel_error;h=746f98112ff8a8f4684b6a0c3492efbbf9cbcfeb;hb=10685de6af924c0ea83e451697639ed9c16586cc;hp=b69a4d80ce562189337340a7ac47459a661e158d;hpb=069fc1c5abf8a9ce01feab82906faf6d02b95c97;p=lttng-tools.git diff --git a/tests/regression/tools/notification/test_notification_kernel_error b/tests/regression/tools/notification/test_notification_kernel_error index b69a4d80c..746f98112 100755 --- a/tests/regression/tools/notification/test_notification_kernel_error +++ b/tests/regression/tools/notification/test_notification_kernel_error @@ -16,10 +16,20 @@ NUM_TESTS=44 # shellcheck source=../../../utils/utils.sh source "$TESTDIR/utils/utils.sh" +# shellcheck source=./util_event_generator.sh +source "$CURDIR/util_event_generator.sh" function test_basic_error_path { - $CURDIR/notification 1 LTTNG_DOMAIN_KERNEL + kernel_event_generator_run_once_per_transition generate_filter_events \ + "$TESTAPP_STATE_PATH" 10 & + APP_PID=$! + + "$CURDIR/notification" 1 LTTNG_DOMAIN_KERNEL $APP_PID \ + "$TESTAPP_STATE_PATH" + + kill -SIGUSR2 $APP_PID + wait $APP_PID 2> /dev/null }