[Lldb-commits] [lldb] eeaa3b5 - [lldb] Remove sanity check from TestWithLimitDebugInfo

Pavel Labath via lldb-commits lldb-commits at lists.llvm.org
Wed Apr 27 07:02:52 PDT 2022


Author: Pavel Labath
Date: 2022-04-27T16:01:54+02:00
New Revision: eeaa3b5478539ec00817ff91e1603c1039376d02

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

LOG: [lldb] Remove sanity check from TestWithLimitDebugInfo

The trick with opening the .o file does not work on arm (unhandled
relocations), and I can't think of a quick fix for that.

Added: 
    

Modified: 
    lldb/test/API/lang/cpp/limit-debug-info/TestWithLimitDebugInfo.py

Removed: 
    


################################################################################
diff  --git a/lldb/test/API/lang/cpp/limit-debug-info/TestWithLimitDebugInfo.py b/lldb/test/API/lang/cpp/limit-debug-info/TestWithLimitDebugInfo.py
index 9956bed5eb50..03bb40271ab0 100644
--- a/lldb/test/API/lang/cpp/limit-debug-info/TestWithLimitDebugInfo.py
+++ b/lldb/test/API/lang/cpp/limit-debug-info/TestWithLimitDebugInfo.py
@@ -12,8 +12,6 @@ class TestWithLimitDebugInfo(TestBase):
     def test_limit_debug_info(self):
         self.build()
 
-        self._check_info_is_limited()
-
         src_file = os.path.join(self.getSourceDir(), "main.cpp")
         src_file_spec = lldb.SBFileSpec(src_file)
         self.assertTrue(src_file_spec.IsValid(), "breakpoint file")
@@ -57,9 +55,3 @@ def test_limit_debug_info(self):
         self.assertSuccess(
             v2.GetError(),
             "'expr this' succeeds without an error.")
-
-    def _check_info_is_limited(self):
-        target = self.dbg.CreateTarget(self.getBuildArtifact("main.o"))
-        self.assertTrue(target.IsValid())
-        Foo = target.FindFirstType("Foo")
-        self.assertFalse(Foo.IsValid())


        


More information about the lldb-commits mailing list