Add decorator for fd leak test failing on FreeBSD

An fd leak comes from Python on FreeBSD

FreeBSD ports PR: https://bugs.freebsd.org/197376
Python issue: https://bugs.python.org/issue23458

llvm-svn: 229704
This commit is contained in:
Ed Maste 2015-02-18 17:23:52 +00:00
parent 3c42dba2dc
commit 4db1174f50

View File

@ -12,10 +12,12 @@ class AvoidsFdLeakTestCase(TestBase):
mydir = TestBase.compute_mydir(__file__)
@expectedFailureFreeBSD("bugs.freebsd.org/197376") # python random leaks fd
@skipIfWindows # The check for descriptor leakage needs to be implemented differently here.
def test_fd_leak_basic (self):
self.do_test([])
@expectedFailureFreeBSD("bugs.freebsd.org/197376") # python random leaks fd
@skipIfWindows # The check for descriptor leakage needs to be implemented differently here.
def test_fd_leak_log (self):
self.do_test(["log enable -f '/dev/null' lldb commands"])
@ -36,6 +38,7 @@ class AvoidsFdLeakTestCase(TestBase):
self.assertTrue(process.GetExitStatus() == 0,
"Process returned non-zero status. Were incorrect file descriptors passed?")
@expectedFailureFreeBSD("bugs.freebsd.org/197376") # python random leaks fd
@skipIfWindows # The check for descriptor leakage needs to be implemented differently here.
def test_fd_leak_multitarget (self):
self.buildDefault()