summaryrefslogtreecommitdiff
path: root/debian/patches/skip-hurd-deadlock
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2019-12-02 13:09:17 +0300
committerIgor Pashev <pashev.igor@gmail.com>2019-12-02 13:09:17 +0300
commit38fde63f74091af1f6a0d485474769bb6b4f17ce (patch)
tree1317a1fa2ef61c710ff5c653f43c0af8bb164ca6 /debian/patches/skip-hurd-deadlock
downloadpypy-debian.tar.gz
Import pypy (7.2.0+dfsg-1)debian/7.2.0+dfsg-1debian
Diffstat (limited to 'debian/patches/skip-hurd-deadlock')
-rw-r--r--debian/patches/skip-hurd-deadlock25
1 files changed, 25 insertions, 0 deletions
diff --git a/debian/patches/skip-hurd-deadlock b/debian/patches/skip-hurd-deadlock
new file mode 100644
index 0000000..47c2ac8
--- /dev/null
+++ b/debian/patches/skip-hurd-deadlock
@@ -0,0 +1,25 @@
+From: Stefano Rivera <stefanor@debian.org>
+Date: Sun, 26 Aug 2018 14:26:45 +0100
+Subject: Skip test that deadlocks on GNU Hurd
+
+Per Samuel Thibault:
+
+> That's probably because pypy uses pthread_mutexes (which per POSIX aren't
+> interrupted by signals) instead of semaphores, and I guess that's
+> because sem_open isn't supported on Hurd yet.
+---
+ pypy/module/thread/test/test_lock.py | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/pypy/module/thread/test/test_lock.py b/pypy/module/thread/test/test_lock.py
+index b56f08e..4fdd57c 100644
+--- a/pypy/module/thread/test/test_lock.py
++++ b/pypy/module/thread/test/test_lock.py
+@@ -241,6 +241,7 @@ class AppTestLockSignals(GenericTestThread):
+ def w_alarm_interrupt(self, sig, frame):
+ raise KeyboardInterrupt
+
++ @py.test.mark.skipif("sys.platform == 'gnu0'")
+ def test_lock_acquire_interruption(self):
+ import thread, signal, time
+ # Mimic receiving a SIGINT (KeyboardInterrupt) with SIGALRM while stuck