]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
On Windows, pass test_option_f in bsdcpio_test.
authorMichihiro NAKAJIMA <ggcueroad@gmail.com>
Fri, 13 Mar 2009 12:05:15 +0000 (08:05 -0400)
committerMichihiro NAKAJIMA <ggcueroad@gmail.com>
Fri, 13 Mar 2009 12:05:15 +0000 (08:05 -0400)
SVN-Revision: 765

cpio/test/test_option_f.c

index d1af91290d456b0fd5fdbcf42fea362cdb4dc1ae..e32aa50a06fc526ddaf372dd5f113298d24b62dd 100644 (file)
@@ -51,14 +51,24 @@ DEFINE_TEST(test_option_f)
        assertEqualInt(0, access("t0/b234", F_OK));
 
        /* Don't extract 'a*' files. */
+#ifdef _WIN32
+       /* Single quotes isn't used by command.exe. */
+       unpack("t1", "-f a*");
+#else
        unpack("t1", "-f 'a*'");
+#endif
        assert(0 != access("t1/a123", F_OK));
        assert(0 != access("t1/a234", F_OK));
        assertEqualInt(0, access("t1/b123", F_OK));
        assertEqualInt(0, access("t1/b234", F_OK));
 
        /* Don't extract 'b*' files. */
+#ifdef _WIN32
+       /* Single quotes isn't used by command.exe. */
+       unpack("t2", "-f b*");
+#else
        unpack("t2", "-f 'b*'");
+#endif
        assertEqualInt(0, access("t2/a123", F_OK));
        assertEqualInt(0, access("t2/a234", F_OK));
        assert(0 != access("t2/b123", F_OK));