diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2019-01-19 10:06:29 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2019-01-19 10:06:29 +0000 |
| commit | 94994d372d014ce4c8758b9605d63fae651bd8aa (patch) | |
| tree | 51c0b708bd59f205d6b35cb2a8c24d62f0c33d77 /unittests/Target/PathMappingListTest.cpp | |
| parent | 39be7ce23363d12ae3e49aeb1fdb2bfeb892e836 (diff) | |
Diffstat (limited to 'unittests/Target/PathMappingListTest.cpp')
| -rw-r--r-- | unittests/Target/PathMappingListTest.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/unittests/Target/PathMappingListTest.cpp b/unittests/Target/PathMappingListTest.cpp index cb807d0ca20d..42db27fdb504 100644 --- a/unittests/Target/PathMappingListTest.cpp +++ b/unittests/Target/PathMappingListTest.cpp @@ -19,8 +19,7 @@ namespace { struct Matches { FileSpec original; FileSpec remapped; - Matches(const char *o, const char *r) - : original(o, false), remapped(r, false) {} + Matches(const char *o, const char *r) : original(o), remapped(r) {} }; } // namespace @@ -38,7 +37,7 @@ static void TestPathMappings(const PathMappingList &map, std::string orig_normalized = match.original.GetPath(); EXPECT_TRUE( map.RemapPath(ConstString(match.original.GetPath()), actual_remapped)); - EXPECT_EQ(FileSpec(actual_remapped.GetStringRef(), false), match.remapped); + EXPECT_EQ(FileSpec(actual_remapped.GetStringRef()), match.remapped); FileSpec unmapped_spec; EXPECT_TRUE(map.ReverseRemapPath(match.remapped, unmapped_spec)); std::string unmapped_path = unmapped_spec.GetPath(); |
