5 #include "tests/main.h"
13 CHECK ((handle = open ("sample.txt")) > 1, "open \"sample.txt\"");
15 snprintf (child_cmd, sizeof child_cmd, "child-close %d", handle);
16 msg ("wait(exec()) = %d", wait (exec (child_cmd)));
18 check_file_handle (handle, "sample.txt", sample, sizeof sample - 1);