From 55ebb02f0649bc2a624ff2992313c2e230e3112e Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sun, 19 Jun 2011 16:36:39 +0200 Subject: [PATCH] pread test: Avoid test failure on OpenBSD 4.9. * tests/test-pread.c (main): Allow EFBIG instead of EINBAL. --- ChangeLog | 5 +++++ tests/test-pread.c | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) 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); -- 2.11.0