diff options
author | Jim Meyering <jim@meyering.net> | 2002-10-09 07:28:11 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2002-10-09 07:28:11 +0000 |
commit | 70869c09b8220f4f9eece1ffaec394f8c27861f6 (patch) | |
tree | eb6d6a63b07c7b567536091ac8da19e9ac734878 /tests | |
parent | 9a7b64e70126976ce049c60ede13df34b0ee14ac (diff) | |
download | coreutils-70869c09b8220f4f9eece1ffaec394f8c27861f6.tar.xz |
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.
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/tail-2/big-4gb | 9 |
1 files changed, 7 insertions, 2 deletions
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 |