aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2016-08-06 19:38:25 -0500
committerRob Landley <rob@landley.net>2016-08-06 19:38:25 -0500
commit5b360d8da327b38daf0c5b8874fbe55406b70ced (patch)
treeba77eacd750c96fd354bc8b1cd2421e0a5d31895 /tests
parent027a73a903af306449710ce12bc09e0e3550c6c9 (diff)
downloadtoybox-5b360d8da327b38daf0c5b8874fbe55406b70ced.tar.gz
Inline setup_inout(), test ftruncate() return value, move gettimeofday() before
seek so seek time is included in total.
Diffstat (limited to 'tests')
-rwxr-xr-xtests/dd.test3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/dd.test b/tests/dd.test
index 82214506..9da2108c 100755
--- a/tests/dd.test
+++ b/tests/dd.test
@@ -49,6 +49,9 @@ unlink softlink && rm -f file
testing "if=file of=file (same file)" "dd if=input of=input $opt &&
[ -f input ] && cat input && echo 'yes'" "yes\n" "I WANT\n" ""
+testing "same file notrunc" \
+ "dd if=input of=input conv=notrunc $opt && cat input" \
+ "I WANT\n" "I WANT\n" ""
testing "with ibs obs bs" "dd ibs=2 obs=5 bs=9 $opt" "I WANT\n" "" "I WANT\n"
testing "with ibs obs bs if" "dd ibs=2 obs=5 bs=9 if=input $opt" \