]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
On Windows, pass test_option_d in bsdcpio_test.
authorMichihiro NAKAJIMA <ggcueroad@gmail.com>
Fri, 13 Mar 2009 11:21:05 +0000 (07:21 -0400)
committerMichihiro NAKAJIMA <ggcueroad@gmail.com>
Fri, 13 Mar 2009 11:21:05 +0000 (07:21 -0400)
SVN-Revision: 764

cpio/test/test_option_d.c

index 370c82ae2d0821489ae1551f5855002482450e78..cb422aea2fa87a0ba8c16138f91ef6612cd7b9bc 100644 (file)
@@ -42,7 +42,7 @@ DEFINE_TEST(test_option_d)
        /* Create an archive. */
        r = systemf("echo dir/file | %s -o > archive.cpio 2>archive.err", testprog);
        assertEqualInt(r, 0);
-       assertFileContents("1 block\n", 8, "archive.err");
+       assertTextFileContents("1 block\n", "archive.err");
        assertEqualInt(0, stat("archive.cpio", &st));
        assertEqualInt(512, st.st_size);
 
@@ -62,7 +62,7 @@ DEFINE_TEST(test_option_d)
        r = systemf("%s -id < ../archive.cpio >out 2>err", testprog);
        assertEqualInt(r, 0);
        assertEmptyFile("out");
-       assertFileContents("1 block\n", 8, "err");
+       assertTextFileContents("1 block\n", "err");
        /* And the file should be restored. */
        assertEqualInt(0, stat("dir/file", &st));
 }