5 #include "tests/main.h"
6 #include "tests/filesys/base/syn-read.h"
8 static char buf[BUF_SIZE];
15 pid_t children[CHILD_CNT];
18 CHECK (create (filename, sizeof buf), "create \"%s\"", filename);
19 CHECK ((fd = open (filename)) > 1, "open \"%s\"", filename);
20 random_bytes (buf, sizeof buf);
21 CHECK (write (fd, buf, sizeof buf) > 0, "write \"%s\"", filename);
22 msg ("close \"%s\"", filename);
25 exec_children ("child-syn-read", children, CHILD_CNT);
26 wait_children (children, CHILD_CNT);