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 3720de04aa..66fc1f1c94 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +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. diff --git a/tests/test-pread.c b/tests/test-pread.c index 026134874a..3e35640844 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.30.2