diff options
Diffstat (limited to 'testsuites/libtests/POSIX/wait.c')
-rw-r--r-- | testsuites/libtests/POSIX/wait.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/testsuites/libtests/POSIX/wait.c b/testsuites/libtests/POSIX/wait.c index 9069bdbe2d..e1f1dc1619 100644 --- a/testsuites/libtests/POSIX/wait.c +++ b/testsuites/libtests/POSIX/wait.c @@ -13,12 +13,11 @@ #include <sys/types.h> #include <sys/wait.h> -int -main (void) +int main(void) { int status; pid_t pid; pid = wait(&status); - return 0; + return (pid != 0); } |