2 * Test suite functions.
4 * 2011, Razvan Deaconescu, razvan.deaconescu@cs.pub.ro
11 #include <sys/types.h>
18 /* Run test function f in another process. */
19 void run_as_child_process(test_fn f)
31 case 0: /* child process */
32 /* Run test function. */
37 default: /* parent process */
41 /* Wait for child process. */
42 rc = waitpid(pid, &status, 0);
43 DIE(rc < 0, "waitpid");