[Lldb-commits] [PATCH] D12976: Fix TestChangeProcessGroup to properly step out of sleep.

Chaoren Lin via lldb-commits lldb-commits at lists.llvm.org
Fri Sep 18 10:33:24 PDT 2015


chaoren created this revision.
chaoren added a reviewer: labath.
chaoren added a subscriber: lldb-commits.

http://reviews.llvm.org/D12976

Files:
  test/functionalities/process_group/TestChangeProcessGroup.py

Index: test/functionalities/process_group/TestChangeProcessGroup.py
===================================================================
--- test/functionalities/process_group/TestChangeProcessGroup.py
+++ test/functionalities/process_group/TestChangeProcessGroup.py
@@ -91,7 +91,12 @@
         thread = process.GetSelectedThread()
         # this gives a chance for the thread to exit the sleep syscall and sidesteps
         # <https://llvm.org/bugs/show_bug.cgi?id=23659> on linux
-        thread.StepInstruction(False)
+        # thread.StepInstruction(False)
+        while True:
+            frame = thread.GetSelectedFrame()
+            if frame.GetFunctionName() == 'main':
+                break
+            thread.StepOutOfFrame(frame)
 
         # release the child from its loop
         self.expect("expr release_child_flag = 1", substrs = ["= 1"])


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D12976.35105.patch
Type: text/x-patch
Size: 863 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20150918/2cafbca6/attachment.bin>


More information about the lldb-commits mailing list