aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVince Harron <vince@nethacker.com>2015-03-12 20:08:45 +0000
committerVince Harron <vince@nethacker.com>2015-03-12 20:08:45 +0000
commitffee7c114bcb33cfa56bcb057931a15f3b35c1c9 (patch)
tree97eb627b38a1c03e19b9d77476ce2ed5b8c0b3cc
parente849103f5afb660089984d0931a8eafb1369dae8 (diff)
downloadllvm-ffee7c114bcb33cfa56bcb057931a15f3b35c1c9.zip
llvm-ffee7c114bcb33cfa56bcb057931a15f3b35c1c9.tar.gz
llvm-ffee7c114bcb33cfa56bcb057931a15f3b35c1c9.tar.bz2
XFAIL TestAbbreviations on Linux, improve test
It was failing on gcc 4.8, only passing accidentally on clang 3.5 This patch improves the checking to make sure if fails in all cases and then XFAILS llvm-svn: 232092
-rw-r--r--lldb/test/functionalities/abbreviation/TestAbbreviations.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/lldb/test/functionalities/abbreviation/TestAbbreviations.py b/lldb/test/functionalities/abbreviation/TestAbbreviations.py
index 669f0c8..aae1b89 100644
--- a/lldb/test/functionalities/abbreviation/TestAbbreviations.py
+++ b/lldb/test/functionalities/abbreviation/TestAbbreviations.py
@@ -85,6 +85,7 @@ class AbbreviationsTestCase(TestBase):
self.running_abbreviations ()
@dwarf_test
+ @expectedFailureLinux # not related to abbreviations, "dis -f" output has int3 in it
def test_with_dwarf (self):
self.buildDwarf ()
self.running_abbreviations ()
@@ -149,12 +150,18 @@ class AbbreviationsTestCase(TestBase):
"stop reason = breakpoint 2.1" ])
# ARCH, if not specified, defaults to x86_64.
+ self.runCmd("dis -f")
+ disassembly = self.res.GetOutput()
if self.getArchitecture() in ["", 'x86_64', 'i386']:
- self.expect("dis -f",
+ # hey! we shouldn't have a software breakpoint in here
+ self.assertFalse("int3" in disassembly)
+ self.expect(disassembly, exe=False,
startstr = "a.out`sum(int, int)",
substrs = [' mov',
' addl ',
'ret'])
+ else:
+ self.fail('unimplemented for arch = "{arch}"'.format(arch=self.getArchitecture()))
self.expect("i d l main.cpp",
patterns = ["Line table for .*main.cpp in `a.out"])