3 #include "tests/main.h"
5 static char buf[76543];
10 const char *filename = "testfile";
14 CHECK (create (filename, 0), "create \"%s\"", filename);
15 CHECK ((fd = open (filename)) > 1, "open \"%s\"", filename);
16 msg ("seek \"%s\"", filename);
17 seek (fd, sizeof buf - 1);
18 CHECK (write (fd, &zero, 1) > 0, "write \"%s\"", filename);
19 msg ("close \"%s\"", filename);
21 check_file (filename, buf, sizeof buf);