Make fork test deterministic.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2190
This commit is contained in:
Jeremy Fitzhardinge 2004-01-06 21:46:02 +00:00
parent 30427d2857
commit 437a6939cc
3 changed files with 5 additions and 2 deletions

View File

@ -1,6 +1,7 @@
#include <unistd.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <stdio.h>
int main(void)
@ -16,5 +17,8 @@ int main(void)
printf("%s", pid==0 ? "X" : "XX");
if (pid != 0)
waitpid(pid, NULL, 0);
return 0;
}

View File

@ -1,2 +0,0 @@

View File

@ -1 +1,2 @@
prog: fork
vgopts: -q