aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2019-07-09 09:49:12 -0700
committerRob Landley <rob@landley.net>2019-07-09 16:22:59 -0500
commit4c6f35ea529ebca9b2dfb6d7c79cade30118fd75 (patch)
treed315ec75d91d9e1a75286d6674b90535aedae30a /tests
parenta5da2e966ad67c2f3667d75b4600c5d4e6ea0c53 (diff)
downloadtoybox-4c6f35ea529ebca9b2dfb6d7c79cade30118fd75.tar.gz
dd: fix seek= on stdout.
Diffstat (limited to 'tests')
-rw-r--r--tests/dd.test3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/dd.test b/tests/dd.test
index 3ad15f2e..d2d6033e 100644
--- a/tests/dd.test
+++ b/tests/dd.test
@@ -92,3 +92,6 @@ testing "conv=sync with IF" "dd conv=sync if=input $opt | head -n 1" "I WANT\n"
# status=noxfer|none
testing "status=noxfer" "dd if=input status=noxfer ibs=1 2>&1" "input\n6+0 records in\n0+1 records out\n" "input\n" ""
testing "status=none" "dd if=input status=none ibs=1 2>&1" "input\n" "input\n" ""
+
+testing "seek stdout" "yes 2> /dev/null | dd bs=8 seek=2 count=1 > out 2> /dev/null && xxd -p out" \
+ "00000000000000000000000000000000790a790a790a790a\n" "" ""