Skip to content

Commit ebedfb6

Browse files
committed
Make test more robust in failure cases
(cherry picked from commit d32995f)
1 parent 4c0692b commit ebedfb6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lldb/test/API/lang/swift/async/frame/language_specific_data/TestSwiftAsyncLanguageSpecificData.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ def test(self):
2727

2828
while process.state == lldb.eStateStopped:
2929
thread = process.GetSelectedThread()
30+
if thread.GetStopReason() != lldb.eStopReasonBreakpoint:
31+
break
3032
frame = thread.frames[0]
3133
# Spin up the compiler so it can answer the explicit modules question.
3234
self.expect("expression 1")

0 commit comments

Comments
 (0)