6 const char test_name[] = "grow-sparse";
7 static char buf[76543];
12 const char *filename = "testfile";
16 CHECK (create (filename, 0), "create \"%s\"", filename);
17 CHECK ((fd = open (filename)) > 1, "open \"%s\"", filename);
18 msg ("seek \"%s\"", filename);
19 seek (fd, sizeof buf - 1);
20 CHECK (write (fd, &zero, 1) > 0, "write \"%s\"", filename);
21 msg ("close \"%s\"", filename);
23 check_file (filename, buf, sizeof buf);