Conditionalize the self.expect("dis -f", ...) test scenario to check on Intel disassembly

only when the test is currently running against the relevant architecture.

llvm-svn: 129960
This commit is contained in:
Johnny Chen 2011-04-22 00:13:28 +00:00
parent 5395f44fe8
commit 13af1b55cd
1 changed files with 9 additions and 7 deletions

View File

@ -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"])