Skip to content

Commit af4983e

Browse files
committed
Relax stepping test
1 parent 636cdde commit af4983e

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

lldb/test/API/lang/swift/stepping/TestSwiftStepping.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,9 +200,10 @@ def do_test(self):
200200
thread.StepOver()
201201
self.hit_correct_line(thread, "At point initializer.")
202202
thread.StepOver()
203-
self.hit_correct_line (thread, "At the beginning of the switch.")
203+
stopped_at_switch = self.hit_correct_line (thread, "At the beginning of the switch.", False)
204+
if stopped_at_switch:
205+
thread.StepOver()
204206

205-
thread.StepOver()
206207
stopped_at_case = self.hit_correct_line(
207208
thread, "case (let x, let y) where", False)
208209
if stopped_at_case:
@@ -312,6 +313,10 @@ def do_test(self):
312313
if stop_on_partial_apply:
313314
thread.StepOver()
314315

316+
stop_at_brace = self.hit_correct_line(thread, "Opening brace", False)
317+
if stop_at_brace:
318+
thread.StepOver()
319+
315320
self.hit_correct_line(thread, "doSomethingWithFunction(cd_maker, 10)")
316321

317322
thread.StepInto()

lldb/test/API/lang/swift/stepping/main.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ func main () -> Void
205205
indirect.protocol_func(20)
206206

207207
var cd_maker =
208-
{
208+
{ // Opening brace
209209
(arg : Int) -> ConformsDirectly in // Step into cd_maker stops at closure decl instead.
210210
return ConformsDirectly(arg) // Step into should stop here in closure.
211211
}

0 commit comments

Comments
 (0)