changeset 14143:a7da48531863

mkdir, mkdirat tests: Avoid failure on HP-UX 11.11. * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative error code.
author Bruno Haible <bruno@clisp.org>
date Fri, 07 Jan 2011 21:24:51 +0100
parents 39695edaade5
children a0e5b3297968
files ChangeLog tests/test-mkdir.h
diffstat 2 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2011-01-07  Bruno Haible  <bruno@clisp.org>
+
+	mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
+	* tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
+	error code.
+
 2011-01-07  Pádraig Brady <P@draigBrady.com>
 
 	ignore-value: fixup comments, and add Eric Blake
--- a/tests/test-mkdir.h
+++ b/tests/test-mkdir.h
@@ -33,7 +33,7 @@
   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);