From 3f3049c2f1b225f244fe3c1205935c48c542a055 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Sun, 31 Jan 2016 16:28:43 -0600 Subject: More testsuite tweaks. --- tests/cpio.test | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/cpio.test') 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 -- cgit v1.2.3