From: Michihiro NAKAJIMA Date: Fri, 13 Mar 2009 12:05:15 +0000 (-0400) Subject: On Windows, pass test_option_f in bsdcpio_test. X-Git-Tag: v2.7.0~164 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=13aa286c4a80f3f5afe086426f79e689bddff69b;p=thirdparty%2Flibarchive.git On Windows, pass test_option_f in bsdcpio_test. SVN-Revision: 765 --- diff --git a/cpio/test/test_option_f.c b/cpio/test/test_option_f.c index d1af91290..e32aa50a0 100644 --- a/cpio/test/test_option_f.c +++ b/cpio/test/test_option_f.c @@ -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));