[Lldb-commits] [lldb] r202788 - Modified some test annotations so that tests on Linux that should be skipped don't show up as XFAIL.
Todd Fiala
tfiala at google.com
Mon Mar 3 21:28:25 PST 2014
Author: tfiala
Date: Mon Mar 3 23:28:24 2014
New Revision: 202788
URL: http://llvm.org/viewvc/llvm-project?rev=202788&view=rev
Log:
Modified some test annotations so that tests on Linux that should be skipped don't show up as XFAIL.
The following two tests showed up as XFAIL even though they should
always be skipped on Linux, due to the @unittest2.expectedFailure
annotation appearing above the @dsym_test annotation:
TestObjCNewSyntax.ObjCNewSyntaxTestCase.test_expr_with_dsym
TestBlocks.BlocksTestCase.test_expr_with_dsym.
For those two, I simply moved the @dsym_test annotation to the top so
that it would be marked for skip ahead of being marked for XFAIL.
TestObjCNewSyntax.ObjCNewSyntaxTestCase.test_expr_with_dwarf I marked
as @skipIfLinux since my understanding is that isn't a valid test to
run on Linux. So rather than categorize as a fail (i.e. something
wrong to be fixed), just skip it. (My recent changes to Linux tests
have been following that model: if it could never work, skip; if it's
broken, mark XFAIL so we can easily track, fix, notice the fix and
adjust accordingly).
TestDeadStrip.DeadStripTestCase.test_with_dwarf I had previously
marked as XFAIL but this would never work on Linux with the current
linker AFAICT. Marked it as skip.
Modified:
lldb/trunk/test/functionalities/dead-strip/TestDeadStrip.py
lldb/trunk/test/lang/c/blocks/TestBlocks.py
lldb/trunk/test/lang/objc/objc-new-syntax/TestObjCNewSyntax.py
Modified: lldb/trunk/test/functionalities/dead-strip/TestDeadStrip.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/dead-strip/TestDeadStrip.py?rev=202788&r1=202787&r2=202788&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/dead-strip/TestDeadStrip.py (original)
+++ lldb/trunk/test/functionalities/dead-strip/TestDeadStrip.py Mon Mar 3 23:28:24 2014
@@ -20,7 +20,7 @@ class DeadStripTestCase(TestBase):
self.dead_strip()
@skipIfFreeBSD # The -dead_strip linker option isn't supported on FreeBSD versions of ld.
- @expectedFailureLinux # The -dead_strip linker option isn't supported on Linux versions of ld.
+ @skipIfLinux # The -dead_strip linker option isn't supported on Linux versions of ld.
@dwarf_test
def test_with_dwarf(self):
"""Test breakpoint works correctly with dead-code stripping."""
Modified: lldb/trunk/test/lang/c/blocks/TestBlocks.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/c/blocks/TestBlocks.py?rev=202788&r1=202787&r2=202788&view=diff
==============================================================================
--- lldb/trunk/test/lang/c/blocks/TestBlocks.py (original)
+++ lldb/trunk/test/lang/c/blocks/TestBlocks.py Mon Mar 3 23:28:24 2014
@@ -11,8 +11,8 @@ class BlocksTestCase(TestBase):
mydir = TestBase.compute_mydir(__file__)
lines = []
- @unittest2.expectedFailure
@dsym_test
+ @unittest2.expectedFailure
def test_expr_with_dsym(self):
self.buildDsym()
self.expr()
Modified: lldb/trunk/test/lang/objc/objc-new-syntax/TestObjCNewSyntax.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/objc-new-syntax/TestObjCNewSyntax.py?rev=202788&r1=202787&r2=202788&view=diff
==============================================================================
--- lldb/trunk/test/lang/objc/objc-new-syntax/TestObjCNewSyntax.py (original)
+++ lldb/trunk/test/lang/objc/objc-new-syntax/TestObjCNewSyntax.py Mon Mar 3 23:28:24 2014
@@ -14,14 +14,15 @@ class ObjCNewSyntaxTestCase(TestBase):
mydir = TestBase.compute_mydir(__file__)
- @unittest2.expectedFailure
@dsym_test
+ @unittest2.expectedFailure
def test_expr_with_dsym(self):
self.buildDsym()
self.expr()
- @unittest2.expectedFailure
@dwarf_test
+ @skipIfLinux
+ @unittest2.expectedFailure
def test_expr_with_dwarf(self):
self.buildDwarf()
self.expr()
More information about the lldb-commits
mailing list