File tree Expand file tree Collapse file tree 1 file changed +2
-14
lines changed
lldb/test/API/lang/swift/missing_sdk Expand file tree Collapse file tree 1 file changed +2
-14
lines changed Original file line number Diff line number Diff line change @@ -24,20 +24,8 @@ def setUp(self):
24
24
@skipIfDarwinEmbedded # swift crash inspecting swift stdlib with little other swift loaded <rdar://problem/55079456>
25
25
def testMissingSDK (self ):
26
26
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' ))
41
29
self .expect ("p message" , VARIABLES_DISPLAYED_CORRECTLY ,
42
30
substrs = ["Hello" ])
43
31
You can’t perform that action at this time.
0 commit comments