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,33 +7,14 @@

class SwiftAddressExpressionTest(TestBase):
@swiftTest
@skipIfLinux # rdar://125497260
def test(self):
"""Test that you can use register names in image lookup in a swift frame."""
self.build()
(target, process, thread, breakpoint) = lldbutil.run_to_source_breakpoint(self,
"break here to check image lookup", lldb.SBFileSpec("main.swift"))
"break here to check image lookup", lldb.SBFileSpec("main.swift"))
# I don't want to be too specific in what we print for image lookup,
# we're testing that the address expression for the pc worked.
self.expect("image lookup -va $pc", substrs=["doSomething"])
self.expect("image lookup -va $pc+4", substrs=["doSomething"])

def test_using_alias(self):
"""Test that you can use register names in image lookup in a swift frame."""
self.build()
(target, process, thread, breakpoint) = lldbutil.run_to_source_breakpoint(self,
"break here to check image lookup", lldb.SBFileSpec("main.swift"))
# I don't want to be too specific in what we print for image lookup,
# we're testing that the address expression for the pc worked.
self.expect("target modules lookup -va $pc", substrs=["doSomething"])
self.expect("target modules lookup -va $pc+4", substrs=["doSomething"])

def test_using_separate_options(self):
"""Test that you can use register names in image lookup in a swift frame."""
self.build()
(target, process, thread, breakpoint) = lldbutil.run_to_source_breakpoint(self,
"break here to check image lookup", lldb.SBFileSpec("main.swift"))
# I don't want to be too specific in what we print for image lookup,
# we're testing that the address expression for the pc worked.
self.expect("target modules lookup -v -a $pc", substrs=["doSomething"])
self.expect("target modules lookup -v -a $pc+4", substrs=["doSomething"])