diff options
Diffstat (limited to 'gnulib-tests/test-mkfifo.h')
-rw-r--r-- | gnulib-tests/test-mkfifo.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gnulib-tests/test-mkfifo.h b/gnulib-tests/test-mkfifo.h index 5adbf08f..792160f0 100644 --- a/gnulib-tests/test-mkfifo.h +++ b/gnulib-tests/test-mkfifo.h @@ -1,5 +1,5 @@ /* Tests of mkfifo and friends. - Copyright (C) 2009-2013 Free Software Foundation, Inc. + Copyright (C) 2009-2014 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -43,7 +43,10 @@ test_mkfifo (int (*func) (char const *, mode_t), bool print) ASSERT (errno == ENOENT); errno = 0; ASSERT (func (".", 0600) == -1); - ASSERT (errno == EEXIST || errno == EINVAL); + /* Allow HP-UX 11.11's EISDIR, even though POSIX says it's wrong, + since it doesn't really hurt anything and we lack the energy to + fix it. */ + ASSERT (errno == EEXIST || errno == EINVAL || errno == EISDIR); errno = 0; ASSERT (func (BASE "fifo", 0600) == -1); ASSERT (errno == EEXIST); |