maint.mk: enhance useless header checks
[pspp] / tests / test-mkdir.h
index ad8802e06b584f85e958e75c87f418cc27c6f07a..62e8ec4238700d928c64e8fcf8136b10a046e224 100644 (file)
@@ -33,7 +33,7 @@ test_mkdir (int (*func) (char const *, mode_t), bool print)
   ASSERT (errno == ENOTDIR || errno == EEXIST);
   errno = 0;
   ASSERT (func (BASE "file/dir", 0700) == -1);
-  ASSERT (errno == ENOTDIR || errno == ENOENT);
+  ASSERT (errno == ENOTDIR || errno == ENOENT || errno == EOPNOTSUPP);
   ASSERT (unlink (BASE "file") == 0);
   errno = 0;
   ASSERT (func ("", 0700) == -1);