Skip to content

Commit 5f21eb4

Browse files
committed
Simplify test (NFC)
1 parent 210449f commit 5f21eb4

File tree

1 file changed

+2
-14
lines changed

1 file changed

+2
-14
lines changed

lldb/test/API/lang/swift/missing_sdk/TestMissingSDK.py

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -24,20 +24,8 @@ def setUp(self):
2424
@skipIfDarwinEmbedded # swift crash inspecting swift stdlib with little other swift loaded <rdar://problem/55079456>
2525
def testMissingSDK(self):
2626
self.build()
27-
exe = self.getBuildArtifact("a.out")
28-
29-
# Create a target by the debugger.
30-
target = self.dbg.CreateTarget(exe)
31-
self.assertTrue(target, VALID_TARGET)
32-
33-
# Now create a breakpoint in main.c at the source matching
34-
# "Set a breakpoint here"
35-
breakpoint = target.BreakpointCreateBySourceRegex(
36-
'break here', lldb.SBFileSpec("main.swift"))
37-
self.assertTrue(breakpoint and
38-
breakpoint.GetNumLocations() >= 1,
39-
VALID_BREAKPOINT)
40-
process = target.LaunchSimple(None, None, os.getcwd())
27+
lldbutil.run_to_source_breakpoint(self, 'break here',
28+
lldb.SBFileSpec('main.swift'))
4129
self.expect("p message", VARIABLES_DISPLAYED_CORRECTLY,
4230
substrs = ["Hello"])
4331

0 commit comments

Comments
 (0)