X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=tests%2Fregression%2Ftools%2Fnotification%2Ftest_notification_ust_error;h=57de30df852cb9a98011b64fe2f5d296d96acd5b;hb=3ce811ee6c6c61a2c2c0909cf27e0dd8eea403fc;hp=53c3959a273d94922bd472d63f398ca29cc58946;hpb=069fc1c5abf8a9ce01feab82906faf6d02b95c97;p=lttng-tools.git diff --git a/tests/regression/tools/notification/test_notification_ust_error b/tests/regression/tools/notification/test_notification_ust_error index 53c3959a2..57de30df8 100755 --- a/tests/regression/tools/notification/test_notification_ust_error +++ b/tests/regression/tools/notification/test_notification_ust_error @@ -18,10 +18,18 @@ TESTAPP_STATE_PATH=$(mktemp -u "$TMPDIR/application_state.XXXXXXXXXX") # 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_UST + ust_event_generator_run_once_per_transition "$GEN_UST_EVENTS_TESTAPP_BIN" "$TESTAPP_STATE_PATH" 5 5 & + APP_PID=$! + + "$CURDIR/notification" 1 LTTNG_DOMAIN_UST $APP_PID "$TESTAPP_STATE_PATH" + + kill -SIGUSR2 $APP_PID + wait $APP_PID 2> /dev/null } start_lttng_sessiond_notap