about summary refs log tree commit diff
path: root/posix/test-vfork.c
diff options
context:
space:
mode:
Diffstat (limited to 'posix/test-vfork.c')
-rw-r--r--posix/test-vfork.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/posix/test-vfork.c b/posix/test-vfork.c
index 959dcb3b01..2abeb5ae14 100644
--- a/posix/test-vfork.c
+++ b/posix/test-vfork.c
@@ -29,7 +29,7 @@ main (void)
     error (1, errno, "vfork");
   printf ("After vfork (parent)\n");
   if (waitpid (0, &status, 0) != pid
-      || !WIFEXITED (status) || WEXITSTATUS (NR))
+      || !WIFEXITED (status) || WEXITSTATUS (status) != NR)
     exit (1);
   exit (0);
 }