File tree Expand file tree Collapse file tree 2 files changed +6
-11
lines changed
lldb/test/API/lang/swift/missing_sdk Expand file tree Collapse file tree 2 files changed +6
-11
lines changed Original file line number Diff line number Diff line change 1
1
SWIFT_SOURCES := main.swift
2
2
3
+ all : fakesdk a.out
4
+
3
5
include Makefile.rules
4
6
5
7
fakesdk :
6
8
ln -s $(SDKROOT ) $@
7
9
8
10
SWIFTFLAGS := $(subst $(SDKROOT ) ,$(shell pwd) /fakesdk,$(SWIFTFLAGS ) )
9
11
10
- a.out : $(SWIFT_SOURCES ) fakesdk
11
- $(SWIFTC ) $< $(SWIFTFLAGS ) -o " $( EXE) "
12
- ifneq "$(CODESIGN ) " ""
13
- $(CODESIGN) -s - "$@"
14
- endif
15
- rm -f fakesdk
16
-
17
12
clean ::
18
13
rm -f fakesdk a.out * .dSYM
Original file line number Diff line number Diff line change 1
1
"""
2
- Test the error message if the SDK the program was built against doesn't exist.
2
+ Test that LLDB is oblivious if the SDK the program was built against doesn't exist.
3
3
"""
4
4
5
- import os
6
5
import lldb
7
6
import lldbsuite .test .lldbutil as lldbutil
8
7
from lldbsuite .test .decorators import *
9
8
from lldbsuite .test .lldbtest import *
9
+ import unittest2
10
10
11
-
12
- class TestMissingSDK (TestBase ):
11
+ class TestSwiftMissingSDK (TestBase ):
13
12
14
13
mydir = TestBase .compute_mydir (__file__ )
15
14
@@ -24,6 +23,7 @@ def setUp(self):
24
23
@skipIfDarwinEmbedded # swift crash inspecting swift stdlib with little other swift loaded <rdar://problem/55079456>
25
24
def testMissingSDK (self ):
26
25
self .build ()
26
+ os .unlink (self .getBuildArtifact ("fakesdk" ))
27
27
lldbutil .run_to_source_breakpoint (self , 'break here' ,
28
28
lldb .SBFileSpec ('main.swift' ))
29
29
self .expect ("p message" , VARIABLES_DISPLAYED_CORRECTLY ,
You can’t perform that action at this time.
0 commit comments