From b616d7239fffa3e329989e43a3d7607061f34c48 Mon Sep 17 00:00:00 2001 From: Hans Hinrichsen Date: Wed, 6 Jan 2016 20:52:36 -0600 Subject: [PATCH] test_leading_slash compatibility with Windows Add '.exe' to the binary name to ensure the text matching works --- tar/test/test_leading_slash.c | 4 ++++ 1 file changed, 4 insertions(+) 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 } -- 2.47.2