chaoren updated this revision to Diff 35113. chaoren added a comment. Remove old line.
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,11 @@ 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) + 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"])
Index: test/functionalities/process_group/TestChangeProcessGroup.py =================================================================== --- test/functionalities/process_group/TestChangeProcessGroup.py +++ test/functionalities/process_group/TestChangeProcessGroup.py @@ -91,7 +91,11 @@ 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) + 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"])
_______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits