File: skip-hurd-deadlock

package info (click to toggle)
pypy 7.0.0%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 107,216 kB
  • sloc: python: 1,201,787; ansic: 62,419; asm: 5,169; cpp: 3,017; sh: 2,534; makefile: 545; xml: 243; lisp: 45; awk: 4
file content (25 lines) | stat: -rw-r--r-- 991 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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