Importing Egor's testsuite.

This commit is contained in:
Christopher Faylor
2000-09-03 03:58:18 +00:00
parent 42f03f6757
commit f1930aec47
99 changed files with 26942 additions and 5 deletions

View File

@@ -0,0 +1,22 @@
#include <stdio.h>
#include <sys/wait.h>
#include <errno.h>
int
main (int argc, char **argv)
{
int pid, n;
if ((pid = fork ()) == 0)
exit (0);
sleep (2);
if ((n = waitpid (pid, NULL, 0)) != pid)
{
printf ("wait pid failed, pid %d, n %d, errno %d\n", pid, n, errno);
exit(1);
}
else
{
printf ("wait pid succeeded, pid %d, n %d, errno %d\n", pid, n, errno);
exit (0);
}
}