Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,26 @@ class TestSwiftTypeAliasOtherModule(TestBase):
NO_DEBUG_INFO_TESTCASE = True

@swiftTest
def test(self):
def test_frame_variable(self):
"""Test that type aliases can be imported from reflection metadata"""
arch = self.getArchitecture()
self.build()
self.expect('settings set symbols.swift-load-conformances true')
log = self.getBuildArtifact("types.log")
self.runCmd('log enable lldb expr types -f "%s"' % log)
lldbutil.run_to_source_breakpoint(
self, "break here", lldb.SBFileSpec("main.swift"), extra_images=["Dylib"]
)
self.expect("frame variable -- payload", substrs=["Bool", "true"])
self.expect("expr -- payload", substrs=["Dylib.Impl.Payload", "true"])
self.expect("continue")
self.expect("frame variable -- payload", substrs=["Bool", "true"])

@swiftTest
def test_expression(self):
"""Test that type aliases can be imported into expressions from reflection metadata"""
self.build()
self.expect('settings set symbols.swift-load-conformances true')
lldbutil.run_to_source_breakpoint(
self, "break here", lldb.SBFileSpec("main.swift"), extra_images=["Dylib"]
)
self.expect("expr -- payload", substrs=["Dylib.Impl.Payload", "true"])
self.expect("continue")
self.expect(
"expr -- payload", substrs=["Dylib.GenericImpl<Bool>.Payload", "true"]
)