diff options
author | Ulrich Drepper <drepper@gmail.com> | 2011-06-24 14:59:17 -0400 |
---|---|---|
committer | Ulrich Drepper <drepper@gmail.com> | 2011-06-24 14:59:17 -0400 |
commit | d5495a116c6271c0ae8f6955b64b7b010b1b341a (patch) | |
tree | 1c7f962b0521b487971d88e9b315a1391518f7f4 /sysdeps/wordsize-64 | |
parent | 0b1cbaaef5ccc21baf2c35d4698fb28e82eab385 (diff) | |
download | glibc-d5495a116c6271c0ae8f6955b64b7b010b1b341a.zip glibc-d5495a116c6271c0ae8f6955b64b7b010b1b341a.tar.gz glibc-d5495a116c6271c0ae8f6955b64b7b010b1b341a.tar.bz2 |
Work around limit in writev in 2.6.38+ kernels
Diffstat (limited to 'sysdeps/wordsize-64')
-rw-r--r-- | sysdeps/wordsize-64/tst-writev.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/sysdeps/wordsize-64/tst-writev.c b/sysdeps/wordsize-64/tst-writev.c index 6e47886..015ad46 100644 --- a/sysdeps/wordsize-64/tst-writev.c +++ b/sysdeps/wordsize-64/tst-writev.c @@ -96,8 +96,14 @@ do_test (void) if (ret != (ssize_t) EXPECTED) { - printf ("writev() return value: %zd != EXPECTED: %zd\n", ret, EXPECTED); - return 1; +#ifdef ARTIFICIAL_LIMIT + if (ret != (ssize_t) ARTIFICIAL_LIMIT) +#endif + { + printf ("writev() return value: %zd != EXPECTED: %zd\n", + ret, EXPECTED); + return 1; + } } return 0; |