summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lldb/unittests/Target/PathMappingListTest.cpp14
1 files changed, 11 insertions, 3 deletions
diff --git a/lldb/unittests/Target/PathMappingListTest.cpp b/lldb/unittests/Target/PathMappingListTest.cpp
index 60d1920eb09..cb807d0ca20 100644
--- a/lldb/unittests/Target/PathMappingListTest.cpp
+++ b/lldb/unittests/Target/PathMappingListTest.cpp
@@ -29,9 +29,12 @@ static void TestPathMappings(const PathMappingList &map,
llvm::ArrayRef<ConstString> fails) {
ConstString actual_remapped;
for (const auto &fail : fails) {
- EXPECT_FALSE(map.RemapPath(fail, actual_remapped));
+ SCOPED_TRACE(fail.GetCString());
+ EXPECT_FALSE(map.RemapPath(fail, actual_remapped))
+ << "actual_remapped: " << actual_remapped.GetCString();
}
for (const auto &match : matches) {
+ SCOPED_TRACE(match.original.GetPath() + " -> " + match.remapped.GetPath());
std::string orig_normalized = match.original.GetPath();
EXPECT_TRUE(
map.RemapPath(ConstString(match.original.GetPath()), actual_remapped));
@@ -54,8 +57,13 @@ TEST(PathMappingListTest, RelativeTests) {
{"bar/foo.c", "/tmp/bar/foo.c"},
};
ConstString fails[] = {
- ConstString("/a"),
- ConstString("/"),
+#ifdef _WIN32
+ ConstString("C:\\"),
+ ConstString("C:\\a"),
+#else
+ ConstString("/a"),
+ ConstString("/"),
+#endif
};
PathMappingList map;
map.Append(ConstString("."), ConstString("/tmp"), false);
OpenPOWER on IntegriCloud