From: Bryce Harrington Date: Sat, 10 Jan 2015 00:05:12 +0000 (-0800) Subject: tests: Correct return code handling X-Git-Tag: 1.6.92~21 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9386e2be275878ba7ee68bcd65ce3f130c3fe3b0;p=platform%2Fupstream%2Fwayland.git tests: Correct return code handling Reviewed-by: Marek Chalupa Signed-off-by: Bryce Harrington --- 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);