Skip to content
Snippets Groups Projects
Commit 11d19aad authored by h2-addad's avatar h2-addad
Browse files

Upload New File

parent a80aefc2
No related branches found
No related tags found
No related merge requests found
/* Runs 4 child-linear processes at once. */
#include <syscall.h>
#include "tests/lib.h"
#include "tests/main.h"
#define CHILD_CNT 4
void
test_main (void)
{
pid_t children[CHILD_CNT];
int i;
for (i = 0; i < CHILD_CNT; i++)
CHECK ((children[i] = exec ("child-linear")) != -1,
"exec \"child-linear\"");
for (i = 0; i < CHILD_CNT; i++)
CHECK (wait (children[i]) == 0x42, "wait for child %d", i);
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment