summaryrefslogtreecommitdiff
path: root/archivers/libarchive/files/cpio/test/test_option_B.c
diff options
context:
space:
mode:
Diffstat (limited to 'archivers/libarchive/files/cpio/test/test_option_B.c')
-rw-r--r--archivers/libarchive/files/cpio/test/test_option_B.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/archivers/libarchive/files/cpio/test/test_option_B.c b/archivers/libarchive/files/cpio/test/test_option_B.c
index 17533180cec..80838823f9d 100644
--- a/archivers/libarchive/files/cpio/test/test_option_B.c
+++ b/archivers/libarchive/files/cpio/test/test_option_B.c
@@ -39,16 +39,16 @@ DEFINE_TEST(test_option_B)
close(fd);
/* Create an archive without -B; this should be 512 bytes. */
- r = systemf("echo file | %s -o --quiet > small.cpio 2>small.err", testprog);
+ r = systemf("echo file | %s -o > small.cpio 2>small.err", testprog);
assertEqualInt(r, 0);
- assertEmptyFile("small.err");
+ assertFileContents("1 block\n", 8, "small.err");
assertEqualInt(0, stat("small.cpio", &st));
assertEqualInt(512, st.st_size);
/* Create an archive with -B; this should be 5120 bytes. */
- r = systemf("echo file | %s -oB --quiet > large.cpio 2>large.err", testprog);
+ r = systemf("echo file | %s -oB > large.cpio 2>large.err", testprog);
assertEqualInt(r, 0);
- assertEmptyFile("large.err");
+ assertFileContents("1 block\n", 8, "large.err");
assertEqualInt(0, stat("large.cpio", &st));
assertEqualInt(5120, st.st_size);
}