Commit f25ae48d authored by Victor Stinner's avatar Victor Stinner

Issue #11223: skip test_lock_acquire_interruption() on FreeBSD6


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).
parent 62d51180
...@@ -70,6 +70,11 @@ class ThreadSignals(unittest.TestCase): ...@@ -70,6 +70,11 @@ class ThreadSignals(unittest.TestCase):
def alarm_interrupt(self, sig, frame): def alarm_interrupt(self, sig, frame):
raise KeyboardInterrupt 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): def test_lock_acquire_interruption(self):
# Mimic receiving a SIGINT (KeyboardInterrupt) with SIGALRM while stuck # Mimic receiving a SIGINT (KeyboardInterrupt) with SIGALRM while stuck
# in a deadlock. # in a deadlock.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment