Author: Armin Rigo <[email protected]>
Branch:
Changeset: r1423:8b8f7428bd31
Date: 2013-11-18 15:14 +0100
http://bitbucket.org/cffi/cffi/changeset/8b8f7428bd31/
Log: Skip these tests on FreeBSD too
diff --git a/c/test_c.py b/c/test_c.py
--- a/c/test_c.py
+++ b/c/test_c.py
@@ -1097,7 +1097,9 @@
assert strlenaddr == cast(BVoidP, strlen)
def test_read_variable():
- if sys.platform == 'win32' or sys.platform == 'darwin':
+ ## FIXME: this test assumes glibc specific behavior, it's not compliant
with C standard
+ ## https://bugs.pypy.org/issue1643
+ if sys.platform == 'win32' or sys.platform == 'darwin' or
sys.platform.startswith('freebsd'):
py.test.skip("untested")
BVoidP = new_pointer_type(new_void_type())
ll = find_and_load_library('c')
@@ -1105,7 +1107,9 @@
assert stderr == cast(BVoidP, _testfunc(8))
def test_read_variable_as_unknown_length_array():
- if sys.platform == 'win32' or sys.platform == 'darwin':
+ ## FIXME: this test assumes glibc specific behavior, it's not compliant
with C standard
+ ## https://bugs.pypy.org/issue1643
+ if sys.platform == 'win32' or sys.platform == 'darwin' or
sys.platform.startswith('freebsd'):
py.test.skip("untested")
BCharP = new_pointer_type(new_primitive_type("char"))
BArray = new_array_type(BCharP, None)
@@ -1115,7 +1119,9 @@
# ^^ and not 'char[]', which is basically not allowed and would crash
def test_write_variable():
- if sys.platform == 'win32' or sys.platform == 'darwin':
+ ## FIXME: this test assumes glibc specific behavior, it's not compliant
with C standard
+ ## https://bugs.pypy.org/issue1643
+ if sys.platform == 'win32' or sys.platform == 'darwin' or
sys.platform.startswith('freebsd'):
py.test.skip("untested")
BVoidP = new_pointer_type(new_void_type())
ll = find_and_load_library('c')
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit