[Lldb-commits] [lldb] r184871 - Skip tests that hang on FreeBSD
Ed Maste
emaste at freebsd.org
Tue Jun 25 12:11:36 PDT 2013
Author: emaste
Date: Tue Jun 25 14:11:36 2013
New Revision: 184871
URL: http://llvm.org/viewvc/llvm-project?rev=184871&view=rev
Log:
Skip tests that hang on FreeBSD
There's still significant work to do in the FreeBSD port, so no point
in a pr for these yet.
Modified:
lldb/trunk/test/functionalities/thread/create_after_attach/TestCreateAfterAttach.py
lldb/trunk/test/lldbtest.py
Modified: lldb/trunk/test/functionalities/thread/create_after_attach/TestCreateAfterAttach.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/thread/create_after_attach/TestCreateAfterAttach.py?rev=184871&r1=184870&r2=184871&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/thread/create_after_attach/TestCreateAfterAttach.py (original)
+++ lldb/trunk/test/functionalities/thread/create_after_attach/TestCreateAfterAttach.py Tue Jun 25 14:11:36 2013
@@ -19,6 +19,9 @@ class CreateAfterAttachTestCase(TestBase
self.buildDsym(dictionary=self.getBuildFlags(use_cpp11=False))
self.create_after_attach(use_fork=False)
+ @skipIfFreeBSD # Hangs. May be the same as Linux issue llvm.org/pr16229 but
+ # not yet investigated. Revisit once required functionality
+ # is implemented for FreeBSD.
@skipIfLinux # Hangs, see llvm.org/pr16229
@dwarf_test
def test_create_after_attach_with_dwarf_and_popen(self):
@@ -26,6 +29,8 @@ class CreateAfterAttachTestCase(TestBase
self.buildDwarf(dictionary=self.getBuildFlags(use_cpp11=False))
self.create_after_attach(use_fork=False)
+ @skipIfFreeBSD # Hangs. Revisit once required functionality is implemented
+ # for FreeBSD.
@dwarf_test
def test_create_after_attach_with_dwarf_and_fork(self):
"""Test thread creation after process attach."""
Modified: lldb/trunk/test/lldbtest.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lldbtest.py?rev=184871&r1=184870&r2=184871&view=diff
==============================================================================
--- lldb/trunk/test/lldbtest.py (original)
+++ lldb/trunk/test/lldbtest.py Tue Jun 25 14:11:36 2013
@@ -588,6 +588,21 @@ def expectedFailureDarwin(bugnumber=None
return wrapper
return expectedFailureDarwin_impl
+def skipIfFreeBSD(func):
+ """Decorate the item to skip tests that should be skipped on FreeBSD."""
+ if isinstance(func, type) and issubclass(func, unittest2.TestCase):
+ raise Exception("@skipIfFreeBSD can only be used to decorate a test method")
+ @wraps(func)
+ def wrapper(*args, **kwargs):
+ from unittest2 import case
+ self = args[0]
+ platform = sys.platform
+ if "freebsd" in platform:
+ self.skipTest("skip on FreeBSD")
+ else:
+ func(*args, **kwargs)
+ return wrapper
+
def skipIfLinux(func):
"""Decorate the item to skip tests that should be skipped on Linux."""
if isinstance(func, type) and issubclass(func, unittest2.TestCase):
More information about the lldb-commits
mailing list