aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/cpio/test/test_option_f.c
diff options
context:
space:
mode:
authorTim Kientzle <kientzle@FreeBSD.org>2009-04-17 04:04:57 +0000
committerTim Kientzle <kientzle@FreeBSD.org>2009-04-17 04:04:57 +0000
commitd46c56dcba7946516c681934203e80187783c73c (patch)
tree71b1033c9249ea051e5e93acaad8389233a40909 /usr.bin/cpio/test/test_option_f.c
parent5191e7b5522ada3d40e781a95944960d70b31086 (diff)
Merge from libarchive.googlecode.com:
* Lots of new tests. * New -n / --numeric-uid-gid option * More sanity-checking of arguments * Various Windows portability improvements * Sync up version number to 2.7.0
Notes
Notes: svn path=/head/; revision=191192
Diffstat (limited to 'usr.bin/cpio/test/test_option_f.c')
-rw-r--r--usr.bin/cpio/test/test_option_f.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/usr.bin/cpio/test/test_option_f.c b/usr.bin/cpio/test/test_option_f.c
index d1af91290d45..54e07ac6da9c 100644
--- a/usr.bin/cpio/test/test_option_f.c
+++ b/usr.bin/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. */
+#if defined(_WIN32) && !defined(__CYGWIN__)
+ /* 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. */
+#if defined(_WIN32) && !defined(__CYGWIN__)
+ /* 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));