summaryrefslogtreecommitdiff
path: root/tar/test/test_option_b.c
diff options
context:
space:
mode:
authorMichihiro NAKAJIMA <ggcueroad@gmail.com>2011-01-05 22:59:38 -0500
committerMichihiro NAKAJIMA <ggcueroad@gmail.com>2011-01-05 22:59:38 -0500
commit3c6558e11e90ce323798b643f85cefde48b1a410 (patch)
treeffeb542ece57f119613b5b6a853bcc14de71c5e6 /tar/test/test_option_b.c
parent194b1d435d69058af817f53327b9400d2a81cf54 (diff)
downloadlibarchive-3c6558e11e90ce323798b643f85cefde48b1a410.tar.gz
Skip a test if platform does not have cat command.
SVN-Revision: 2863
Diffstat (limited to 'tar/test/test_option_b.c')
-rw-r--r--tar/test/test_option_b.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tar/test/test_option_b.c b/tar/test/test_option_b.c
index c79116d5..be2ae65c 100644
--- a/tar/test/test_option_b.c
+++ b/tar/test/test_option_b.c
@@ -28,6 +28,10 @@ __FBSDID("$FreeBSD$");
DEFINE_TEST(test_option_b)
{
assertMakeFile("file1", 0644, "file1");
+ if (systemf("cat file1 > test_cat.out 2> test_cat.err") != 0) {
+ skipping("Platform doesn't have cat");
+ return;
+ }
/*
* Bsdtar does not pad if the output is going directly to a disk file.