1 /* Tries to open a directory.
2 This is allowed to succeed or fail,
3 but if it succeeds then attempts to write to it must fail. */
7 #include "tests/main.h"
14 CHECK (mkdir ("xyzzy"), "mkdir \"xyzzy\"");
15 msg ("open \"xyzzy\"");
18 msg ("open returned -1 -- ok");
21 int retval = write (fd, "foobar", 6);
22 CHECK (retval == -1, "write \"xyzzy\" (must return -1, actually %d)",