1 /* Executes child-mm-wrt and verifies that the writes that should
2 have occurred really did. */
5 #include "tests/vm/sample.inc"
7 #include "tests/main.h"
14 /* Make child write file. */
16 CHECK ((child = exec ("child-mm-wrt")) != -1, "exec \"child-mm-wrt\"");
17 CHECK (wait (child) == 0, "wait for child (should return 0)");
20 /* Check file contents. */
21 check_file ("sample.txt", sample, sizeof sample);