From: Bruno Haible Date: Sun, 19 Jun 2011 14:36:39 +0000 (+0200) Subject: pread test: Avoid test failure on OpenBSD 4.9. X-Git-Tag: v0.1~2229 X-Git-Url: http://erislabs.net/gitweb/?a=commitdiff_plain;ds=sidebyside;h=55ebb02f0649bc2a624ff2992313c2e230e3112e;p=gnulib.git pread test: Avoid test failure on OpenBSD 4.9. * tests/test-pread.c (main): Allow EFBIG instead of EINBAL. --- diff --git a/ChangeLog b/ChangeLog index 3720de04a..66fc1f1c9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2011-06-19 Bruno Haible + pread test: Avoid test failure on OpenBSD 4.9. + * tests/test-pread.c (main): Allow EFBIG instead of EINBAL. + +2011-06-19 Bruno Haible + sprintf-posix: Fix test failure on AIX 7.1. * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug. * doc/posix-functions/dprintf.texi: Mention limited precision problem diff --git a/tests/test-pread.c b/tests/test-pread.c index 026134874..3e3564084 100644 --- a/tests/test-pread.c +++ b/tests/test-pread.c @@ -68,7 +68,9 @@ main (void) /* Invalid offset must evoke failure with EINVAL. */ char byte; ASSERT (pread (fd, &byte, 1, (off_t) -1) == -1); - ASSERT (errno == EINVAL); + ASSERT (errno == EINVAL + || errno == EFBIG /* seen on OpenBSD 4.9 */ + ); } ASSERT (close (fd) == 0);