summaryrefslogtreecommitdiff
blob: bb887c4b2305470f82b2744b61792db8281313db (plain)
1
2
3
4
5
6
7
8
9
10
11
--- tests/test-readlink.h
+++ tests/test-readlink.h
@@ -38,7 +38,7 @@
   ASSERT (errno == ENOENT);
   errno = 0;
   ASSERT (func ("", buf, sizeof buf) == -1);
-  ASSERT (errno == ENOENT);
+  ASSERT (errno == ENOENT || errno == EINVAL);
   errno = 0;
   ASSERT (func (".", buf, sizeof buf) == -1);
   ASSERT (errno == EINVAL);