projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Tests: Cleanup: notification: `assert()` that `app_pid` is set
[lttng-tools.git]
/
tests
/
regression
/
tools
/
notification
/
notification.c
diff --git
a/tests/regression/tools/notification/notification.c
b/tests/regression/tools/notification/notification.c
index d3917b4784d0eccb421af7e38474bfd5db255639..631948cda93d4a440875a8146fb306d4147edf5a 100644
(file)
--- 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;
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
const char *app_state_file = NULL;
static
@@
-156,6
+156,8
@@
int suspend_application(void)
/*
* Send SIGUSR1 to application instructing it to bypass tracepoint.
*/
/*
* 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);
ret = kill(app_pid, SIGUSR1);
if (ret) {
fail("SIGUSR1 failed. errno %d", errno);
@@
-186,6
+188,8
@@
int resume_application(void)
goto error;
}
goto error;
}
+ assert(app_pid > 1);
+
ret = kill(app_pid, SIGUSR1);
if (ret) {
fail("SIGUSR1 failed. errno %d", errno);
ret = kill(app_pid, SIGUSR1);
if (ret) {
fail("SIGUSR1 failed. errno %d", errno);
This page took
0.025385 seconds
and
5
git commands to generate.