From 70869c09b8220f4f9eece1ffaec394f8c27861f6 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Wed, 9 Oct 2002 07:28:11 +0000 Subject: Mark this as an expensive test; it would consume 4GB of disk space on systems without support for sparse files. Fix a logic error that'd make it `cat err' even though dd didn't fail. --- tests/tail-2/big-4gb | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'tests/tail-2') diff --git a/tests/tail-2/big-4gb b/tests/tail-2/big-4gb index 70760256e..61f1720cf 100755 --- a/tests/tail-2/big-4gb +++ b/tests/tail-2/big-4gb @@ -2,6 +2,8 @@ # Demonstrate a bug in `tail -cN' when operating on files of size 4G and larger # Fixed in coreutils-4.5.2. +. $srcdir/../expensive + if test "$VERBOSE" = yes; then set -x tail --version @@ -23,8 +25,11 @@ cd $tmp || framework_failure=1 echo abcdefgh | tr -d '\n' > big || framework_failure=1 echo 87654321 | tr -d '\n' > tmp || framework_failure=1 # Seek 4GB - 8 -dd bs=1 seek=4294967288 if=tmp of=big 2> err || framework_failure=1 -test $framework_failure = 1 && cat err 1>&2 +dd bs=1 seek=4294967288 if=tmp of=big 2> err || dd_failed=1 +if test "$dd_failed" = 1; then + cat err 1>&2 + framework_failure=1 +fi if test $framework_failure = 1; then echo "$0: failure in testing framework" 1>&2 -- cgit v1.2.3-70-g09d2