File: skip-hurd-deadlock

package info (click to toggle)
pypy3 7.3.19%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 212,236 kB
  • sloc: python: 2,098,316; ansic: 540,565; sh: 21,462; asm: 14,419; cpp: 4,451; makefile: 4,209; objc: 761; xml: 530; exp: 499; javascript: 314; pascal: 244; lisp: 45; csh: 12; awk: 4
file content (25 lines) | stat: -rw-r--r-- 999 bytes parent folder | download | duplicates (2)
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: Tests: 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 a7bf382..9038c41 100644
--- a/pypy/module/thread/test/test_lock.py
+++ b/pypy/module/thread/test/test_lock.py
@@ -263,6 +263,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