projects
/
platform
/
upstream
/
wayland.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2eeb2cb
)
tests: Correct return code handling
author
Bryce Harrington
<bryce@osg.samsung.com>
Sat, 10 Jan 2015 00:05:12 +0000
(16:05 -0800)
committer
Bryce Harrington
<bryce@osg.samsung.com>
Tue, 27 Jan 2015 02:11:40 +0000
(18:11 -0800)
Reviewed-by: Marek Chalupa <mchqwerty@gmail.com>
Signed-off-by: Bryce Harrington <bryce@osg.samsung.com>
tests/test-runner.c
patch
|
blob
|
history
diff --git
a/tests/test-runner.c
b/tests/test-runner.c
index
9abf22f
..
48e9a22
100644
(file)
--- a/
tests/test-runner.c
+++ b/
tests/test-runner.c
@@
-255,13
+255,13
@@
is_debugger_attached(void)
{
int status;
int rc;
-
in
t pid = fork();
+
pid_
t pid = fork();
if (pid == -1)
return 0;
if (pid == 0) {
-
in
t ppid = getppid();
+
pid_
t ppid = getppid();
if (ptrace(PTRACE_ATTACH, ppid, NULL, NULL) == 0) {
waitpid(ppid, NULL, 0);
ptrace(PTRACE_CONT, NULL, NULL);