7 const char *test_name = "child-rox";
16 CHECK ((handle = open ("child-rox")) > 1, "open \"child-rox\"");
19 CHECK (write (handle, buffer, sizeof buffer) == 0,
20 "try to write \"child-rox\"");
26 main (int argc UNUSED, char *argv[])
31 if (!isdigit (*argv[1]))
32 fail ("bad command-line arguments");
33 if (atoi (argv[1]) > 1)
38 snprintf (cmd, sizeof cmd, "child-rox %d", atoi (argv[1]) - 1);
39 CHECK ((child = exec (cmd)) != -1, "exec \"%s\"", cmd);
41 CHECK (wait (child) == 12, "wait for \"child-rox\"");