From e3d5348851c0164a7ab7d3454043d841a1813fc9 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sat, 5 Oct 2002 08:29:21 +0000 Subject: save dd's stderr, and output it if dd fails --- tests/tail-2/big-4gb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'tests/tail-2/big-4gb') diff --git a/tests/tail-2/big-4gb b/tests/tail-2/big-4gb index 39801b36e..5e846c440 100755 --- a/tests/tail-2/big-4gb +++ b/tests/tail-2/big-4gb @@ -20,10 +20,11 @@ cd $tmp || framework_failure=1 # at the beginning and another set of 8 bytes at the end. # The rest will be NUL bytes. On most modern systems, the following # creates a file that takes up only a few KB. Here, du -sh says 16KB. -echo abcdefgh | tr -d '\n' > big -echo 87654321 | tr -d '\n' > tmp +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> /dev/null +dd bs=1 seek=4294967288 if=tmp of=big 2> err || framework_failure=1 +test $framework_failure == 1 && cat err 1>&2 if test $framework_failure = 1; then echo '$0: failure in testing framework' 1>&2 -- cgit v1.2.3-54-g00ecf