File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
lldb/test/API/lang/swift/async/unwind/unwind_in_all_instructions Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 25
25
# path as the previous one. However, it is the first time an unwind plan
26
26
# created from that path is used to create another unwind plan.
27
27
28
+
28
29
class TestCase (lldbtest .TestBase ):
29
30
30
31
mydir = lldbtest .TestBase .compute_mydir (__file__ )
@@ -116,9 +117,10 @@ def test(self):
116
117
# Reach most breakpoints and ensure we can unwind in that position.
117
118
while True :
118
119
process .Continue ()
119
- thread = lldbutil .get_stopped_thread (process , lldb .eStopReasonBreakpoint )
120
- if thread is None :
120
+ if process .GetState () == lldb .eStateExited :
121
121
break
122
+ thread = lldbutil .get_stopped_thread (process , lldb .eStopReasonBreakpoint )
123
+ self .assertTrue (thread .IsValid ())
122
124
bpid = thread .GetStopReasonDataAtIndex (0 )
123
125
breakpoints .remove (bpid )
124
126
target .FindBreakpointByID (bpid ).SetEnabled (False )
You can’t perform that action at this time.
0 commit comments