Skip to content

Commit 72acc23

Browse files
committed
Use use_api consistently.
1 parent e6fc612 commit 72acc23

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

lldb/test/API/lang/swift/step_through_allocating_init/TestStepThroughAllocatingInit.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,14 +61,22 @@ def do_test(self, use_api):
6161

6262
# Step one line so some_string is initialized, make sure we can
6363
# get its value:
64-
thread.StepOver()
64+
if use_api:
65+
thread.StepOver()
66+
else:
67+
self.runCmd("thread step-over")
68+
6569
frame_0 = thread.frames[0]
6670
self.assertIn('Foo.init()', frame_0.GetFunctionName())
6771
var = frame_0.FindVariable("some_string")
6872
self.assertTrue(var.GetError().Success())
6973
self.assertEqual(var.GetSummary(), '"foo"')
7074

7175
# Now make sure that stepping out steps past the thunk:
72-
thread.StepOut()
76+
if use_api:
77+
thread.StepOut()
78+
else:
79+
self.runCmd("thread step-out")
80+
7381
frame_0 = thread.frames[0]
7482
self.assertIn("doSomething", frame_0.GetFunctionName())

0 commit comments

Comments
 (0)