summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lldb/test/abbreviation_tests/TestAbbreviations.py16
1 files changed, 9 insertions, 7 deletions
diff --git a/lldb/test/abbreviation_tests/TestAbbreviations.py b/lldb/test/abbreviation_tests/TestAbbreviations.py
index a896b378f80..422bab23f4e 100644
--- a/lldb/test/abbreviation_tests/TestAbbreviations.py
+++ b/lldb/test/abbreviation_tests/TestAbbreviations.py
@@ -123,13 +123,15 @@ class AbbreviationsTestCase(TestBase):
"at main.cpp\:25",
"stop reason = breakpoint 2.1" ])
- self.expect("dis -f",
- startstr = "a.out`sum(int, int):",
- substrs = [' push',
- ' mov',
- ' addl ',
- 'ret'],
- patterns = ['(leave|popq|popl)'])
+ # ARCH, if not specified, defaults to x86_64.
+ if self.getArchitecture() in ["", 'x86_64', 'i386']:
+ self.expect("dis -f",
+ startstr = "a.out`sum(int, int):",
+ substrs = [' push',
+ ' mov',
+ ' addl ',
+ 'ret'],
+ patterns = ['(leave|popq|popl)'])
self.expect("i d l main.cpp",
patterns = ["Line table for .*main.cpp in `a.out"])
OpenPOWER on IntegriCloud