[Lldb-commits] [lldb] r297830 - Fix TestMoveNearest breakage on darwin

Pavel Labath via lldb-commits lldb-commits at lists.llvm.org
Wed Mar 15 05:32:18 PDT 2017


Author: labath
Date: Wed Mar 15 07:32:18 2017
New Revision: 297830

URL: http://llvm.org/viewvc/llvm-project?rev=297830&view=rev
Log:
Fix TestMoveNearest breakage on darwin

It seems that on darwin we are not able to resolve breakpoints in the
test shared library until the process has started. That seems
unfortunate, but it is not the purpose of this test, so work around that
by starting the process before doing the rest of our checks.

Modified:
    lldb/trunk/packages/Python/lldbsuite/test/functionalities/breakpoint/move_nearest/TestMoveNearest.py

Modified: lldb/trunk/packages/Python/lldbsuite/test/functionalities/breakpoint/move_nearest/TestMoveNearest.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/functionalities/breakpoint/move_nearest/TestMoveNearest.py?rev=297830&r1=297829&r2=297830&view=diff
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/functionalities/breakpoint/move_nearest/TestMoveNearest.py (original)
+++ lldb/trunk/packages/Python/lldbsuite/test/functionalities/breakpoint/move_nearest/TestMoveNearest.py Wed Mar 15 07:32:18 2017
@@ -27,6 +27,10 @@ class TestMoveNearest(TestBase):
         target = self.dbg.CreateTarget("a.out")
         self.assertTrue(target, VALID_TARGET)
 
+        lldbutil.run_break_set_by_symbol(self, 'main', sym_exact=True)
+        process = target.LaunchSimple(None, None, self.get_process_working_directory())
+        self.assertEquals(process.GetState(), lldb.eStateStopped)
+
         # Regardless of the -m value the breakpoint should have exactly one
         # location on the foo functions
         self.runCmd("settings set target.move-to-nearest-code true")




More information about the lldb-commits mailing list