Skip to content

Commit e17653f

Browse files
Merge pull request swiftlang#10017 from adrian-prantl/stop-reason
Make test more robust in failure cases
2 parents 106274e + d32995f commit e17653f

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)