From: Stefano Rivera <stefanor@debian.org>
Date: Wed, 12 Sep 2018 15:39:06 +0300
Subject: Skip init locking test on Hurd

TestThread.test_init_different_modules_in_different_threads fails
sometimes on Hurd.

This is a bug, but it's not critical for the vast majority of CFFI
users, and we don't want to abort the build.

Bug-Debian: https://bugs.debian.org/893743
Bug-Upstream: https://bitbucket.org/cffi/cffi/issues/383/test-fails-on-gnu-hurd-locking-issues
---
 testing/embedding/test_thread.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/testing/embedding/test_thread.py b/testing/embedding/test_thread.py
index 6653572..40bfbb9 100644
--- a/testing/embedding/test_thread.py
+++ b/testing/embedding/test_thread.py
@@ -18,6 +18,9 @@ class TestThread(EmbeddingTests):
         return text[:i] + text[i+len(content):]
 
     def test_init_different_modules_in_different_threads(self):
+        import platform, py
+        if platform.system() == 'GNU':
+            raise py.test.skip('Known to fail on Hurd')
         add1_cffi = self.prepare_module('add1')
         add2_cffi = self.prepare_module('add2')
         self.compile('thread2-test', [add1_cffi, add2_cffi], threads=True)
