Skip to content

Commit 92b5062

Browse files
committed
Simplify test
1 parent a192d86 commit 92b5062

File tree

2 files changed

+6
-11
lines changed

2 files changed

+6
-11
lines changed
Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,13 @@
11
SWIFT_SOURCES := main.swift
22

3+
all: fakesdk a.out
4+
35
include Makefile.rules
46

57
fakesdk:
68
ln -s $(SDKROOT) $@
79

810
SWIFTFLAGS := $(subst $(SDKROOT),$(shell pwd)/fakesdk,$(SWIFTFLAGS))
911

10-
a.out: $(SWIFT_SOURCES) fakesdk
11-
$(SWIFTC) $< $(SWIFTFLAGS) -o "$(EXE)"
12-
ifneq "$(CODESIGN)" ""
13-
$(CODESIGN) -s - "$@"
14-
endif
15-
rm -f fakesdk
16-
1712
clean::
1813
rm -f fakesdk a.out *.dSYM

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
"""
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.
33
"""
44

5-
import os
65
import lldb
76
import lldbsuite.test.lldbutil as lldbutil
87
from lldbsuite.test.decorators import *
98
from lldbsuite.test.lldbtest import *
9+
import unittest2
1010

11-
12-
class TestMissingSDK(TestBase):
11+
class TestSwiftMissingSDK(TestBase):
1312

1413
mydir = TestBase.compute_mydir(__file__)
1514

@@ -24,6 +23,7 @@ def setUp(self):
2423
@skipIfDarwinEmbedded # swift crash inspecting swift stdlib with little other swift loaded <rdar://problem/55079456>
2524
def testMissingSDK(self):
2625
self.build()
26+
os.unlink(self.getBuildArtifact("fakesdk"))
2727
lldbutil.run_to_source_breakpoint(self, 'break here',
2828
lldb.SBFileSpec('main.swift'))
2929
self.expect("p message", VARIABLES_DISPLAYED_CORRECTLY,

0 commit comments

Comments
 (0)