diff options
| author | Bryce Harrington <bryce@osg.samsung.com> | 2015-01-09 16:05:12 -0800 |
|---|---|---|
| committer | Bryce Harrington <bryce@osg.samsung.com> | 2015-01-26 18:11:40 -0800 |
| commit | 9386e2be275878ba7ee68bcd65ce3f130c3fe3b0 (patch) | |
| tree | 70f6d3c19204251f7be1282a90ce5f7534698072 /tests/test-runner.c | |
| parent | tests: Fix typo "evnironment" (diff) | |
| download | wayland-9386e2be275878ba7ee68bcd65ce3f130c3fe3b0.tar wayland-9386e2be275878ba7ee68bcd65ce3f130c3fe3b0.tar.gz wayland-9386e2be275878ba7ee68bcd65ce3f130c3fe3b0.tar.bz2 wayland-9386e2be275878ba7ee68bcd65ce3f130c3fe3b0.tar.lz wayland-9386e2be275878ba7ee68bcd65ce3f130c3fe3b0.tar.xz wayland-9386e2be275878ba7ee68bcd65ce3f130c3fe3b0.tar.zst wayland-9386e2be275878ba7ee68bcd65ce3f130c3fe3b0.zip | |
tests: Correct return code handling
Reviewed-by: Marek Chalupa <mchqwerty@gmail.com>
Signed-off-by: Bryce Harrington <bryce@osg.samsung.com>
Diffstat (limited to 'tests/test-runner.c')
| -rw-r--r-- | tests/test-runner.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test-runner.c b/tests/test-runner.c index 9abf22f..48e9a22 100644 --- a/tests/test-runner.c +++ b/tests/test-runner.c @@ -255,13 +255,13 @@ is_debugger_attached(void) { int status; int rc; - int pid = fork(); + pid_t pid = fork(); if (pid == -1) return 0; if (pid == 0) { - int ppid = getppid(); + pid_t ppid = getppid(); if (ptrace(PTRACE_ATTACH, ppid, NULL, NULL) == 0) { waitpid(ppid, NULL, 0); ptrace(PTRACE_CONT, NULL, NULL); |
