3 #include "tests/userprog/boundary.h"
4 #include "tests/userprog/sample.inc"
6 #include "tests/main.h"
15 sample_p = copy_string_across_boundary (sample);
17 CHECK ((handle = open ("sample.txt")) > 1, "open \"sample.txt\"");
19 byte_cnt = write (handle, sample_p, sizeof sample - 1);
20 if (byte_cnt != sizeof sample - 1)
21 fail ("write() returned %d instead of %zu", byte_cnt, sizeof sample - 1);