[Lldb-commits] [lldb] 42237d5 - [lldb] Fix PathMappingListTest for the Optional interface change

Pavel Labath via lldb-commits lldb-commits at lists.llvm.org
Thu Nov 24 02:11:17 PST 2022


Author: Pavel Labath
Date: 2022-11-24T11:11:05+01:00
New Revision: 42237d51abf00417f5a3164d843e245ad584f7c4

URL: https://github.com/llvm/llvm-project/commit/42237d51abf00417f5a3164d843e245ad584f7c4
DIFF: https://github.com/llvm/llvm-project/commit/42237d51abf00417f5a3164d843e245ad584f7c4.diff

LOG: [lldb] Fix PathMappingListTest for the Optional interface change

Added: 
    

Modified: 
    lldb/unittests/Target/PathMappingListTest.cpp

Removed: 
    


################################################################################
diff  --git a/lldb/unittests/Target/PathMappingListTest.cpp b/lldb/unittests/Target/PathMappingListTest.cpp
index cf2bc181b0796..29d83782e08fb 100644
--- a/lldb/unittests/Target/PathMappingListTest.cpp
+++ b/lldb/unittests/Target/PathMappingListTest.cpp
@@ -40,7 +40,8 @@ static void TestPathMappings(const PathMappingList &map,
         map.RemapPath(ConstString(match.original.GetPath()), actual_remapped));
     EXPECT_EQ(FileSpec(actual_remapped.GetStringRef()), match.remapped);
     FileSpec unmapped_spec;
-    EXPECT_TRUE(map.ReverseRemapPath(match.remapped, unmapped_spec).hasValue());
+    EXPECT_TRUE(
+        map.ReverseRemapPath(match.remapped, unmapped_spec).has_value());
     std::string unmapped_path = unmapped_spec.GetPath();
     EXPECT_EQ(unmapped_path, orig_normalized);
   }


        


More information about the lldb-commits mailing list