[pypy-commit] pypy default: cleanup old freebsd versions, future-proof newer ones, fixes issue #2126
mattip
noreply at buildbot.pypy.org
Wed Aug 26 23:33:49 CEST 2015
Author: mattip <matti.picus at gmail.com>
Branch:
Changeset: r79237:6edeb840fb4b
Date: 2015-08-27 00:16 +0300
http://bitbucket.org/pypy/pypy/changeset/6edeb840fb4b/
Log: cleanup old freebsd versions, future-proof newer ones, fixes issue
#2126
diff --git a/lib_pypy/ctypes_support.py b/lib_pypy/ctypes_support.py
--- a/lib_pypy/ctypes_support.py
+++ b/lib_pypy/ctypes_support.py
@@ -28,7 +28,7 @@
def _where_is_errno():
return standard_c_lib.__errno_location()
-elif sys.platform in ('darwin', 'freebsd7', 'freebsd8', 'freebsd9'):
+elif sys.platform == 'darwin' or sys.platform.startswith('freebsd'):
standard_c_lib.__error.restype = ctypes.POINTER(ctypes.c_int)
standard_c_lib.__error.argtypes = None
def _where_is_errno():
diff --git a/pypy/module/thread/test/test_lock.py b/pypy/module/thread/test/test_lock.py
--- a/pypy/module/thread/test/test_lock.py
+++ b/pypy/module/thread/test/test_lock.py
@@ -116,9 +116,6 @@
class AppTestLockSignals(GenericTestThread):
pytestmark = py.test.mark.skipif("os.name != 'posix'")
- def setup_class(cls):
- cls.w_using_pthread_cond = cls.space.wrap(sys.platform == 'freebsd6')
-
def w_acquire_retries_on_intr(self, lock):
import thread, os, signal, time
self.sig_recvd = False
@@ -157,8 +154,6 @@
raise KeyboardInterrupt
def test_lock_acquire_interruption(self):
- if self.using_pthread_cond:
- skip('POSIX condition variables cannot be interrupted')
import thread, signal, time
# Mimic receiving a SIGINT (KeyboardInterrupt) with SIGALRM while stuck
# in a deadlock.
diff --git a/rpython/rlib/clibffi.py b/rpython/rlib/clibffi.py
--- a/rpython/rlib/clibffi.py
+++ b/rpython/rlib/clibffi.py
@@ -32,7 +32,6 @@
_WIN32 = _MSVC or _MINGW
_WIN64 = _WIN32 and is_emulated_long
_MAC_OS = platform.name == "darwin"
-_FREEBSD_7 = platform.name == "freebsd7"
_LITTLE_ENDIAN = sys.byteorder == 'little'
_BIG_ENDIAN = sys.byteorder == 'big'
More information about the pypy-commit
mailing list