void test_main (void) { int handle; int byte_cnt; char *sample_p; sample_p = copy_string_across_boundary (sample); CHECK ((handle = open ("sample.txt")) > 1, "open \"sample.txt\""); byte_cnt = write (handle, sample_p, sizeof sample - 1); //printf(" %d \n ", byte_cnt); if (byte_cnt != sizeof sample - 1){ fail ("write() returned %d instead of %zu", byte_cnt, sizeof sample - 1); } }
void test_main (void) { wait (exec (copy_string_across_boundary("child-args arg1 arg2"))); }
void test_main (void) { msg ("create(\"quux.dat\"): %d", create (copy_string_across_boundary ("quux.dat"), 0)); }