1 /* Opens a directory, then tries to write to it, which must
6 #include "tests/main.h"
14 CHECK (mkdir ("xyzzy"), "mkdir \"xyzzy\"");
15 CHECK ((fd = open ("xyzzy")) > 1, "open \"xyzzy\"");
17 msg ("write \"xyzzy\"");
18 retval = write (fd, "foobar", 6);
20 "write \"xyzzy\" (must return -1, actually %d)", retval);