1 /* Creates a "vine" of directories /0/1/2/3/4/5/6/7/8/9
2 and changes directory into each of them,
3 then creates a test file in the bottommost
4 and verifies that it can be opened by absolute name. */
8 #include "tests/main.h"
13 const char *filename = "/0/1/2/3/4/5/6/7/8/9/test";
17 for (dir[0] = '0'; dir[0] <= '9'; dir[0]++)
19 CHECK (mkdir (dir), "mkdir \"%s\"", dir);
20 CHECK (chdir (dir), "chdir \"%s\"", dir);
22 CHECK (create ("test", 512), "create \"test\"");
23 CHECK (chdir ("/"), "chdir \"/\"");
24 CHECK (open (filename) > 1, "open \"%s\"", filename);