mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-03 10:05:29 +00:00
Make fork test deterministic.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2190
This commit is contained in:
parent
30427d2857
commit
437a6939cc
@ -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;
|
||||
}
|
||||
|
||||
@ -1,2 +0,0 @@
|
||||
|
||||
|
||||
@ -1 +1,2 @@
|
||||
prog: fork
|
||||
vgopts: -q
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user