[Lldb-commits] [PATCH] D92746: [lldb] [test] Fix continue_to_breakpoint() args in TestThreadStepOut

Michał Górny via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Mon Dec 7 00:33:30 PST 2020


mgorny created this revision.
mgorny added reviewers: labath, emaste, krytarowski.
Herald added a subscriber: arichardson.
mgorny requested review of this revision.

The test is skipped/xfailing on all platforms, so it seems that the API
got out of sync.  Fix that so it returns to a 'proper' failure
on FreeBSD.


https://reviews.llvm.org/D92746

Files:
  lldb/test/API/functionalities/thread/step_out/TestThreadStepOut.py


Index: lldb/test/API/functionalities/thread/step_out/TestThreadStepOut.py
===================================================================
--- lldb/test/API/functionalities/thread/step_out/TestThreadStepOut.py
+++ lldb/test/API/functionalities/thread/step_out/TestThreadStepOut.py
@@ -145,7 +145,8 @@
         if len(breakpoint_threads) == 1:
             success = thread.Suspend()
             self.assertTrue(success, "Couldn't suspend a thread")
-            bkpt_threads = lldbutil.continue_to_breakpoint(bkpt)
+            bkpt_threads = lldbutil.continue_to_breakpoint(self.inferior_process,
+                                                           bkpt)
             self.assertEqual(len(bkpt_threads), 1, "Second thread stopped")
             success = thread.Resume()
             self.assertTrue(success, "Couldn't resume a thread")


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D92746.309820.patch
Type: text/x-patch
Size: 850 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20201207/c6981c64/attachment-0001.bin>


More information about the lldb-commits mailing list