X-Git-Url: http://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=tests%2Fregression%2Ftools%2Fnotification%2Fnotification.c;h=631948cda93d4a440875a8146fb306d4147edf5a;hp=d3917b4784d0eccb421af7e38474bfd5db255639;hb=7344b6a307b62685272f8f5dacc42d4e06e5732f;hpb=40ac67094a64b4399801074f2599e4a193445672 diff --git a/tests/regression/tools/notification/notification.c b/tests/regression/tools/notification/notification.c index d3917b478..631948cda 100644 --- a/tests/regression/tools/notification/notification.c +++ b/tests/regression/tools/notification/notification.c @@ -43,7 +43,7 @@ int nb_args = 0; int named_pipe_args_start = 0; -pid_t app_pid = -1; +pid_t app_pid = 0; const char *app_state_file = NULL; static @@ -156,6 +156,8 @@ int suspend_application(void) /* * Send SIGUSR1 to application instructing it to bypass tracepoint. */ + assert(app_pid > 1); + ret = kill(app_pid, SIGUSR1); if (ret) { fail("SIGUSR1 failed. errno %d", errno); @@ -186,6 +188,8 @@ int resume_application(void) goto error; } + assert(app_pid > 1); + ret = kill(app_pid, SIGUSR1); if (ret) { fail("SIGUSR1 failed. errno %d", errno);