aboutsummaryrefslogtreecommitdiff
path: root/tests/cpio.test
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2016-01-31 16:28:43 -0600
committerRob Landley <rob@landley.net>2016-01-31 16:28:43 -0600
commit3f3049c2f1b225f244fe3c1205935c48c542a055 (patch)
tree5dea35c50d581d02d3f7855af868e5ad69ef3c9a /tests/cpio.test
parent324a4a018a4e949d2262ca622722948712ec4a4d (diff)
downloadtoybox-3f3049c2f1b225f244fe3c1205935c48c542a055.tar.gz
More testsuite tweaks.
Diffstat (limited to 'tests/cpio.test')
-rwxr-xr-xtests/cpio.test6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/cpio.test b/tests/cpio.test
index d0528e52..2d91b06d 100755
--- a/tests/cpio.test
+++ b/tests/cpio.test
@@ -25,10 +25,10 @@ printf '333' >dddd
# the relevant bit should be here:
# 110*5 + 4*3 + 2 + 6*3 = 550 + 12 + 20 = 582
# files are padded to n*4, names are padded to 2 + n*4 due to the header length
-testing "cpio archive length" "cpio -o -H newc|dd ibs=2 skip=291 count=5" "TRAILER!!!" "" "a\nbb\nccc\ndddd\n"
-testing "cpio archive magic" "cpio -o -H newc|dd ibs=2 count=3" "070701" "" "a\n"
+testing "cpio archive length" "cpio -o -H newc|dd ibs=2 skip=291 count=5 2>/dev/null" "TRAILER!!!" "" "a\nbb\nccc\ndddd\n"
+testing "cpio archive magic" "cpio -o -H newc|dd ibs=2 count=3 2>/dev/null" "070701" "" "a\n"
# check name length (8 bytes before the empty "crc")
-testing "cpio name length" "cpio -o -H newc|dd ibs=2 skip=47 count=4" "00000002" "" "a\n"
+testing "cpio name length" "cpio -o -H newc|dd ibs=2 skip=47 count=4 2>/dev/null" "00000002" "" "a\n"
rm a bb ccc dddd
# archive dangling symlinks and empty files even if we cannot open them