]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue #11223: skip test_lock_acquire_interruption() on FreeBSD6
authorVictor Stinner <victor.stinner@haypocalc.com>
Thu, 23 Jun 2011 09:57:56 +0000 (11:57 +0200)
committerVictor Stinner <victor.stinner@haypocalc.com>
Thu, 23 Jun 2011 09:57:56 +0000 (11:57 +0200)
Locks are implemented using a mutex and a condition variable of the pthread
library on FreeBSD6. POSIX condition variables cannot be interrupted by signals
(see pthread_cond_wait manual page).

Lib/test/test_threadsignals.py

index 46e405ab818dbd7932be6e8579c7b12fd3d3af97..9162c864638bc6d284e71b84ef499e73957e0e8b 100644 (file)
@@ -70,6 +70,11 @@ class ThreadSignals(unittest.TestCase):
     def alarm_interrupt(self, sig, frame):
         raise KeyboardInterrupt
 
+    # Issue #11223: Locks are implemented using a mutex and a condition
+    # variable of the pthread library on FreeBSD6. POSIX condition variables
+    # cannot be interrupted by signals (see pthread_cond_wait manual page).
+    @unittest.skipIf(sys.platform == 'freebsd6',
+                     'POSIX condition variables cannot be interrupted')
     def test_lock_acquire_interruption(self):
         # Mimic receiving a SIGINT (KeyboardInterrupt) with SIGALRM while stuck
         # in a deadlock.