3 #include "tests/userprog/sample.inc"
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);
17 msg ("wait(exec()) = %d", wait (exec (child_cmd)));
19 check_file_handle (handle, "sample.txt", sample, sizeof sample - 1);