Skip to content

Commit 1999c98

Browse files
committed
Mark tests that require a SwiftASTContext fallback
1 parent 23dd6ab commit 1999c98

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

lldb/test/API/lang/swift/clangimporter/extra_clang_flags/TestSwiftExtraClangFlags.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@ def test_extra_clang_flags(self):
2525
VFS overlay using target.swift-extra-clang-flags.
2626
"""
2727
self.build()
28+
29+
# Because the bridging header isn't precompiled or in a module
30+
# we don't have DWARF type information for the types it contains.
31+
self.expect("settings set symbols.swift-typesystem-compiler-fallback true")
32+
2833
# FIXME: this doesn't work if LLDB's build dir contains a space.
2934
overlay = self.getBuildArtifact('overlay.yaml')
3035
self.addTearDownHook(

lldb/test/API/lang/swift/clangimporter/rewrite_clang_paths/TestSwiftRewriteClangPaths.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ def dotest(self, remap):
4646
log = self.getBuildArtifact("types.log")
4747
self.runCmd('log enable lldb types -f "%s"' % log)
4848

49+
# Because the bridging header isn't precompiled or in a module
50+
# we don't have DWARF type information for the types it contains.
51+
self.expect("settings set symbols.swift-typesystem-compiler-fallback true")
52+
4953
# To ensure the module is rebuilt remove the cache to avoid caching.
5054
mod_cache = self.getBuildArtifact("my-clang-modules-cache")
5155
if os.path.isdir(mod_cache):

0 commit comments

Comments
 (0)