summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2007-06-02 00:42:13 +0000
committerBruno Haible <bruno@clisp.org>2007-06-02 00:42:13 +0000
commit40a871a5db0fb808c5224cf4d37af6c23c55290d (patch)
tree117fea85bf586d6aa557d5b9d10b3db51b460e84 /tests
parentbe24a67b3782266f03b391b0aef86a8e373a0965 (diff)
downloadgnulib-40a871a5db0fb808c5224cf4d37af6c23c55290d.tar.gz
Don't work around an lseek POSIX compliance bug on IRIX.
Diffstat (limited to 'tests')
-rw-r--r--tests/test-lseek.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test-lseek.c b/tests/test-lseek.c
index f8fcfec36d..f1f956e995 100644
--- a/tests/test-lseek.c
+++ b/tests/test-lseek.c
@@ -50,16 +50,20 @@ main (int argc, char **argv)
ASSERT (errno == EINVAL);
errno = 0;
ASSERT (lseek (0, (off_t)0, SEEK_CUR) == 2);
+#if 0 /* leads to SIGSYS on IRIX 6.5 */
ASSERT (lseek (0, (off_t)0, (SEEK_SET | SEEK_CUR | SEEK_END) + 1) == -1);
ASSERT (errno == EINVAL);
+#endif
ASSERT (lseek (1, (off_t)2, SEEK_SET) == 2);
errno = 0;
ASSERT (lseek (1, (off_t)-4, SEEK_CUR) == -1);
ASSERT (errno == EINVAL);
errno = 0;
ASSERT (lseek (1, (off_t)0, SEEK_CUR) == 2);
+#if 0 /* leads to SIGSYS on IRIX 6.5 */
ASSERT (lseek (1, (off_t)0, (SEEK_SET | SEEK_CUR | SEEK_END) + 1) == -1);
ASSERT (errno == EINVAL);
+#endif
break;
case '1': /* pipes */