* tests/test-linkat.c (main): Avoid collision with EEXIST.
Signed-off-by: Eric Blake <ebb9@byu.net>
2009-09-24 Eric Blake <ebb9@byu.net>
+ test-linkat: make test more robust
+ * tests/test-linkat.c (main): Avoid collision with EEXIST.
+
getopt: fix inclusion guards for cygwin
* modules/getopt-posix (Depends-on): Add include-next.
(Makefile.am): Substitute more items in replacement header.
errno = 0;
ASSERT (areadlink (BASE "file") == NULL);
ASSERT (errno == EINVAL);
+ ASSERT (unlink (BASE "file") == 0);
ASSERT (unlink (BASE "link5") == 0);
ASSERT (symlink (BASE "link3", BASE "link5") == 0);
errno = 0;
ASSERT (unlink (BASE "link3") == 0);
ASSERT (unlink (BASE "link4") == 0);
ASSERT (unlink (BASE "link5") == 0);
- ASSERT (unlink (BASE "file") == 0);
free (cwd);
return result;
}