diff options
author | Hans Hinrichsen <hinrichsen.hans@gmail.com> | 2016-01-06 20:52:36 -0600 |
---|---|---|
committer | Hans Hinrichsen <hinrichsen.hans@gmail.com> | 2016-01-06 20:52:36 -0600 |
commit | b616d7239fffa3e329989e43a3d7607061f34c48 (patch) | |
tree | d33d2cfd8bcfb7ed5755c3c15d1f05a7a8252fd4 /tar/test/test_leading_slash.c | |
parent | c710148abbeafbf28c5cb907aabdf14e362b7912 (diff) | |
download | libarchive-b616d7239fffa3e329989e43a3d7607061f34c48.tar.gz |
test_leading_slash compatibility with Windows
Add '.exe' to the binary name to ensure the text matching works
Diffstat (limited to 'tar/test/test_leading_slash.c')
-rw-r--r-- | tar/test/test_leading_slash.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tar/test/test_leading_slash.c b/tar/test/test_leading_slash.c index 350aa4a7..52646d00 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 } |