]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
test_leading_slash compatibility with Windows 638/head
authorHans Hinrichsen <hinrichsen.hans@gmail.com>
Thu, 7 Jan 2016 02:52:36 +0000 (20:52 -0600)
committerHans Hinrichsen <hinrichsen.hans@gmail.com>
Thu, 7 Jan 2016 02:52:36 +0000 (20:52 -0600)
Add '.exe' to the binary name to ensure the text matching works

tar/test/test_leading_slash.c

index 350aa4a782ba8995a225a2606760c4ad4d5d860c..52646d00c216a9549678bd210fc259038dfd28d7 100644 (file)
@@ -36,6 +36,10 @@ DEFINE_TEST(test_leading_slash)
        assertTextFileContents("foo\x0a", "foo/hardlink");
        assertIsHardlink("foo/file", "foo/hardlink");
        assertEmptyFile("test.out");
+#ifdef _WIN32
+       assertTextFileContents("bsdtar.exe: Removing leading '/' from member names\x0a", "test.err");
+#else
        assertTextFileContents("bsdtar: Removing leading '/' from member names\x0a", "test.err");
+#endif
 }