From: Jim Meyering Date: Wed, 9 Oct 2002 07:28:11 +0000 (+0000) Subject: Mark this as an expensive test; it would X-Git-Tag: v4.5.3~43 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=70869c09b8220f4f9eece1ffaec394f8c27861f6;p=thirdparty%2Fcoreutils.git 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. --- diff --git a/tests/tail-2/big-4gb b/tests/tail-2/big-4gb index 70760256e9..61f1720cf3 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