]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Verify that -p without a dirname fails.
authorTim Kientzle <kientzle@gmail.com>
Sun, 5 Apr 2009 06:10:07 +0000 (02:10 -0400)
committerTim Kientzle <kientzle@gmail.com>
Sun, 5 Apr 2009 06:10:07 +0000 (02:10 -0400)
SVN-Revision: 930

cpio/test/test_cmdline.c

index 46f1c79d080906218c4c275eb26d25943262f1e5..594cd3421446e8e5f70bf1008cc8e18c16fdeeaf 100644 (file)
@@ -100,4 +100,8 @@ DEFINE_TEST(test_cmdline)
        failure("-p -o is nonsense");
        assert(0 != systemf("%s -p -o <empty >16.out 2>16.err", testprog));
        assertEmptyFile("16.out");
+
+       failure("-p with empty input should fail");
+       assert(0 != systemf("%s -p <empty >17.out 2>17.err", testprog));
+       assertEmptyFile("17.out");
 }