From: Hans Hinrichsen Date: Thu, 7 Jan 2016 02:52:36 +0000 (-0600) Subject: test_leading_slash compatibility with Windows X-Git-Tag: v3.1.900a~29^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b616d7239fffa3e329989e43a3d7607061f34c48;p=thirdparty%2Flibarchive.git test_leading_slash compatibility with Windows Add '.exe' to the binary name to ensure the text matching works --- diff --git a/tar/test/test_leading_slash.c b/tar/test/test_leading_slash.c index 350aa4a78..52646d00c 100644 --- a/tar/test/test_leading_slash.c +++ b/tar/test/test_leading_slash.c @@ -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 }