summaryrefslogtreecommitdiff
path: root/tests/tail-2/big-4gb
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2002-10-05 08:29:21 +0000
committerJim Meyering <jim@meyering.net>2002-10-05 08:29:21 +0000
commite3d5348851c0164a7ab7d3454043d841a1813fc9 (patch)
treeb254857d4010c38ff84d23cb64297ebc2b792686 /tests/tail-2/big-4gb
parentae48cdae26542539d31bb4da47d75ebaba69c79a (diff)
downloadcoreutils-e3d5348851c0164a7ab7d3454043d841a1813fc9.tar.xz
save dd's stderr, and output it if dd fails
Diffstat (limited to 'tests/tail-2/big-4gb')
-rwxr-xr-xtests/tail-2/big-4gb7
1 files changed, 4 insertions, 3 deletions
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