From 4096742b6e95c879444b004a92f4fa43e648abed Mon Sep 17 00:00:00 2001 From: tjg Date: Thu, 17 Jul 2003 11:59:38 +0000 Subject: Testing: remove test for large file support, as it causes indigestion on file systems that don't support sparse files (thanks Scott Schwartz). --- ChangeLog | 6 ++++++ trip.rc | 12 ------------ tripping.c | 18 ------------------ 3 files changed, 6 insertions(+), 30 deletions(-) diff --git a/ChangeLog b/ChangeLog index b9b5b78..1635b54 100644 --- a/ChangeLog +++ b/ChangeLog @@ -820,3 +820,9 @@ Changes since rc-1.5b2 command; history writes and reads outside allocated memory. Configuration: upgrade to autoconf-2.56 and automake-1.7.1. + +2003-07-17 + + Testing: remove test for large file support, as it causes + indigestion on file systems that don't support sparse files (thanks + Scott Schwartz). diff --git a/trip.rc b/trip.rc index 9b4dd13..734429c 100644 --- a/trip.rc +++ b/trip.rc @@ -594,15 +594,3 @@ x=$tmp.qux/foo* ~ $x $tmp.qux/foo || { rm -rf $tmp.qux; fail broken symlink globbing } x=$tmp.qux*/foo ~ $x $tmp.qux/foo || { rm -rf $tmp.qux; fail broken symlink globbing } - -# large file support - -# this is, by no means, an exhaustive test. since particular file -# systems do, or do not, support large files, we try it both in the -# build directory and /tmp. - -if (./tripping l > big.$pid >[2] /dev/null || - ./tripping l > /tmp/big.$pid >[2] /dev/null) { - echo large file support seems to work -} else echo large file support seems NOT to work - see INSTALL file -rm -f big.$pid /tmp/big.$pid diff --git a/tripping.c b/tripping.c index a9099ce..23b2972 100644 --- a/tripping.c +++ b/tripping.c @@ -19,21 +19,6 @@ static void ctrl_a(void) { puts("a\001ab\002b"); } -static void large(void) { - char c = 'c'; - -#define LARGE (((off_t)1<<33)+1) - - if (lseek(1, LARGE, SEEK_SET) != LARGE) { - perror("lseek"); - exit(1); - } - if (write(1, &c, 1) == -1) { - perror("write"); - exit(1); - } -} - static void makenonblock(void) { int flags; @@ -52,9 +37,6 @@ int main(int argc, char **argv) { case 'a': ctrl_a(); break; - case 'l': - large(); - break; case 'n': makenonblock(); break; -- cgit v1.2.3