Skip to content

Commit 20920cc

Browse files
authored
Merge pull request #8514 from jimingham/centos-tests
Try to figure out why this test is failing on CentOS and no other Linux.
2 parents e1b786a + 74ed35a commit 20920cc

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

lldb/test/API/commands/target/modules/swift/TestSwiftImageLookupPC.py

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,29 @@ def test(self):
1111
"""Test that you can use register names in image lookup in a swift frame."""
1212
self.build()
1313
(target, process, thread, breakpoint) = lldbutil.run_to_source_breakpoint(self,
14-
"break here to check image lookup", lldb.SBFileSpec("main.swift"))
14+
"break here to check image lookup", lldb.SBFileSpec("main.swift"))
1515
# I don't want to be too specific in what we print for image lookup,
1616
# we're testing that the address expression for the pc worked.
1717
self.expect("image lookup -va $pc", substrs=["doSomething"])
1818
self.expect("image lookup -va $pc+4", substrs=["doSomething"])
19+
20+
def test_using_alias(self):
21+
"""Test that you can use register names in image lookup in a swift frame."""
22+
self.build()
23+
(target, process, thread, breakpoint) = lldbutil.run_to_source_breakpoint(self,
24+
"break here to check image lookup", lldb.SBFileSpec("main.swift"))
25+
# I don't want to be too specific in what we print for image lookup,
26+
# we're testing that the address expression for the pc worked.
27+
self.expect("target modules lookup -va $pc", substrs=["doSomething"])
28+
self.expect("target modules lookup -va $pc+4", substrs=["doSomething"])
29+
30+
def test_using_separate_options(self):
31+
"""Test that you can use register names in image lookup in a swift frame."""
32+
self.build()
33+
(target, process, thread, breakpoint) = lldbutil.run_to_source_breakpoint(self,
34+
"break here to check image lookup", lldb.SBFileSpec("main.swift"))
35+
# I don't want to be too specific in what we print for image lookup,
36+
# we're testing that the address expression for the pc worked.
37+
self.expect("target modules lookup -v -a $pc", substrs=["doSomething"])
38+
self.expect("target modules lookup -v -a $pc+4", substrs=["doSomething"])
1939

0 commit comments

Comments
 (0)