Debian Codegraph @

debian/patches/tests/skip-hurd-deadlock

raw
1 From: Stefano Rivera <[email protected]>
2 Date: Sun, 26 Aug 2018 14:26:45 +0100
3 Subject: Tests: Skip test that deadlocks on GNU Hurd
4
5 Per Samuel Thibault:
6
7 > That's probably because pypy uses pthread_mutexes (which per POSIX aren't
8 > interrupted by signals) instead of semaphores, and I guess that's
9 > because sem_open isn't supported on Hurd yet.
10 ---
11 pypy/module/thread/test/test_lock.py | 1 +
12 1 file changed, 1 insertion(+)
13
14 diff --git a/pypy/module/thread/test/test_lock.py b/pypy/module/thread/test/test_lock.py
15 index a7bf382..9038c41 100644
16 --- a/pypy/module/thread/test/test_lock.py
17 +++ b/pypy/module/thread/test/test_lock.py
18 @@ -263,6 +263,7 @@ class AppTestLockSignals(GenericTestThread):
19 def w_alarm_interrupt(self, sig, frame):
20 raise KeyboardInterrupt
21
22 + @py.test.mark.skipif("sys.platform == 'gnu0'")
23 def test_lock_acquire_interruption(self):
24 import _thread, signal, time
25 # Mimic receiving a SIGINT (KeyboardInterrupt) with SIGALRM while stuck