Merged revisions 80144 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r80144 | r.david.murray | 2010-04-17 01:26:26 -0400 (Sat, 17 Apr 2010) | 8 lines
Issue #3864: Skip three test_signal tests on freebsd6 due to platform bug.
Two itimer tests and an interprocess signal test fail on FreeBSD 6 if
any test that starts a thread runs before test_signal. Since FreeBSD7
does not show this behavior, the bug is most likely a platform bug,
so this patch just skips the failing tests on freebsd6.
........
diff --git a/Lib/test/test_signal.py b/Lib/test/test_signal.py
index 9bc9f8c..01b7050 100644
--- a/Lib/test/test_signal.py
+++ b/Lib/test/test_signal.py
@@ -140,6 +140,11 @@
" didn't arrive after another second.")
def test_main(self):
+ # Issue 3864, unknown if this affects earlier versions of freebsd also
+ if sys.platform=='freebsd6' and test_support.verbose:
+ sys.stderr.write('skipping -- inter process signals not reliable '
+ '(do not mix well with threading) on freebsd6\n')
+ return
# This function spawns a child process to insulate the main
# test-running process from all the signals. It then
# communicates with that child process over a pipe and
@@ -356,6 +361,11 @@
self.assertEqual(self.hndl_called, True)
def test_itimer_virtual(self):
+ # Issue 3864, unknown if this affects earlier versions of freebsd also
+ if sys.platform=='freebsd6' and test_support.verbose:
+ sys.stderr.write('skipping -- itimer not reliable '
+ '(does not mix well with threading) on freebsd6\n')
+ return
self.itimer = signal.ITIMER_VIRTUAL
signal.signal(signal.SIGVTALRM, self.sig_vtalrm)
signal.setitimer(self.itimer, 0.3, 0.2)
@@ -377,6 +387,11 @@
self.assertEquals(self.hndl_called, True)
def test_itimer_prof(self):
+ # Issue 3864, unknown if this affects earlier versions of freebsd also
+ if sys.platform=='freebsd6' and test_support.verbose:
+ sys.stderr.write('skipping -- itimer not reliable '
+ '(does not mix well with threading) on freebsd6\n')
+ return
self.itimer = signal.ITIMER_PROF
signal.signal(signal.SIGPROF, self.sig_prof)
signal.setitimer(self.itimer, 0.2, 0.2)