| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
| |
This release includes DNS flag day changes.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
test-event-stats.c:365: Assert failed: compare_test_stats_to( "EVENT %lu 1 0 0" " stest-event-stats.c %d" " l0 0 ctest2\n", id, l)
no merging parent sent to stats ...................................... : FAILED
test-event-stats.c:394: Assert failed: compare_test_stats_to( "BEGIN %lu 0 1 0 0" " stest-event-stats.c %d ctest1\n" "EVENT %lu 1 1 0" " stest-event-stats.c %d" " l1 0 ctest2\n" "END\t%lu\n", idp, lp, idp, l, idp)
no merging parent timestamp differs .................................. : FAILED
merge events parent NULL ............................................. : ok
test-event-stats.c:458: Assert failed: compare_test_stats_to( "EVENT %lu 1 0 0" " stest-event-stats.c %d l0 0" " ctest3 ctest2 ctest1 Tkey3" " 10 0 Ikey2 20" " Skey1 str1\n", id, l)
merge events parent sent to stats .................................... : FAILED
test-event-stats.c:490: Assert failed: compare_test_stats_to( "BEGIN %lu 0 1 0 0" " stest-event-stats.c %d ctest1\n" "EVENT %lu 1 3 0 " "stest-event-stats.c %d l3 0" " ctest2\nEND\t%lu\n", id, lp, id, l, id)
skip empty parents ................................................... : FAILED
test-event-stats.c:533: Assert failed: compare_test_stats_to( "BEGIN %lu 0 1 0 0" " stest-event-stats.c %d ctest1\n" "EVENT %lu 1 3 0 " "stest-event-stats.c %d l3 0 " "ctest4 ctest5 Tkey3 10 0 Skey4" " str4\nEND\t%lu\n", id, lp, id, l, id)
merge events and skip empty parents .................................. : FAILED
5 / 7 tests failed
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
=================================== FAILURES ===================================
_________________________ TestFFI.test_struct_by_value _________________________
self = <testing.cffi0.test_ffi_backend.TestFFI object at 0xfff247db0a50>
def test_struct_by_value(self):
if self.module is None:
py.test.skip("fix the auto-generation of the tiny test lib")
ffi = FFI(backend=self.Backend())
ffi.cdef("""
typedef struct {
long x;
long y;
} POINT;
typedef struct {
long left;
long top;
long right;
long bottom;
} RECT;
long left, top, right, bottom;
RECT ReturnRect(int i, RECT ar, RECT* br, POINT cp, RECT dr,
RECT *er, POINT fp, RECT gr);
""")
ownlib = ffi.dlopen(self.module)
rect = ffi.new('RECT[1]')
pt = ffi.new('POINT[1]')
pt[0].x = 15
pt[0].y = 25
rect[0].left = ownlib.left
rect[0].right = ownlib.right
rect[0].top = ownlib.top
rect[0].bottom = ownlib.bottom
for i in range(4):
ret = ownlib.ReturnRect(i, rect[0], rect, pt[0], rect[0],
rect, pt[0], rect[0])
> assert ret.left == ownlib.left
E AssertionError: assert -200 == 10
E + where -200 = <cdata 'RECT' owning 32 bytes>.left
E + and 10 = <cffi.api.FFILibrary_/tmp/ffi-0/testownlib.so object at 0xfff247de1f50>.left
testing/cffi0/test_ownlib.py:296: AssertionError
_______________________ TestOwnLib.test_struct_by_value ________________________
self = <testing.cffi0.test_ownlib.TestOwnLib object at 0xfff24884d550>
def test_struct_by_value(self):
if self.module is None:
py.test.skip("fix the auto-generation of the tiny test lib")
ffi = FFI(backend=self.Backend())
ffi.cdef("""
typedef struct {
long x;
long y;
} POINT;
typedef struct {
long left;
long top;
long right;
long bottom;
} RECT;
long left, top, right, bottom;
RECT ReturnRect(int i, RECT ar, RECT* br, POINT cp, RECT dr,
RECT *er, POINT fp, RECT gr);
""")
ownlib = ffi.dlopen(self.module)
rect = ffi.new('RECT[1]')
pt = ffi.new('POINT[1]')
pt[0].x = 15
pt[0].y = 25
rect[0].left = ownlib.left
rect[0].right = ownlib.right
rect[0].top = ownlib.top
rect[0].bottom = ownlib.bottom
for i in range(4):
ret = ownlib.ReturnRect(i, rect[0], rect, pt[0], rect[0],
rect, pt[0], rect[0])
> assert ret.left == ownlib.left
E AssertionError: assert -200 == 10
E + where -200 = <cdata 'RECT &' 0xaaace719ec20>.left
E + and 10 = <cffi.api.FFILibrary_/tmp/ffi-0/testownlib.so object at 0xfff24886a0d0>.left
testing/cffi0/test_ownlib.py:296: AssertionError
2 failed, 1861 passed, 106 skipped, 4 xfailed, 508 warnings in 929.02 seconds =
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
>>>>>>>>>>>>>>>>>>> ppc64le
=================================== FAILURES ===================================
_______________________________ test_float_types _______________________________
def test_float_types():
INF = 1E200 * 1E200
for name in ["float", "double"]:
p = new_primitive_type(name)
assert bool(cast(p, 0)) is False # since 1.7
assert bool(cast(p, -0.0)) is False # since 1.7
assert bool(cast(p, 1e-42)) is True
assert bool(cast(p, -1e-42)) is True
assert bool(cast(p, INF))
assert bool(cast(p, -INF))
assert bool(cast(p, float("nan")))
assert int(cast(p, -150)) == -150
assert int(cast(p, 61.91)) == 61
assert long(cast(p, 61.91)) == 61
assert type(int(cast(p, 61.91))) is int
assert type(int(cast(p, 1E22))) is long
assert type(long(cast(p, 61.91))) is long
assert type(long(cast(p, 1E22))) is long
py.test.raises(OverflowError, int, cast(p, INF))
py.test.raises(OverflowError, int, cast(p, -INF))
assert float(cast(p, 1.25)) == 1.25
assert float(cast(p, INF)) == INF
assert float(cast(p, -INF)) == -INF
if name == "float":
assert float(cast(p, 1.1)) != 1.1 # rounding error
> assert float(cast(p, 1E200)) == INF # limited range
E AssertionError: assert 21918092.0 == inf
E + where 21918092.0 = float(<cdata 'float' 21918092.0>)
E + where <cdata 'float' 21918092.0> = cast(<ctype 'float'>, 1e+200)
c/test_c.py:181: AssertionError
______________________________ test_complex_types ______________________________
def test_complex_types():
INF = 1E200 * 1E200
for name in ["float", "double"]:
p = new_primitive_type(name + " _Complex")
assert bool(cast(p, 0)) is False
assert bool(cast(p, INF))
assert bool(cast(p, -INF))
assert bool(cast(p, 0j)) is False
assert bool(cast(p, INF*1j))
assert bool(cast(p, -INF*1j))
# "can't convert complex to float", like CPython's "float(0j)"
py.test.raises(TypeError, int, cast(p, -150))
py.test.raises(TypeError, long, cast(p, -150))
py.test.raises(TypeError, float, cast(p, -150))
assert complex(cast(p, 1.25)) == 1.25
assert complex(cast(p, 1.25j)) == 1.25j
assert complex(cast(p, complex(0,INF))) == complex(0,INF)
assert complex(cast(p, -INF)) == -INF
if name == "float":
assert complex(cast(p, 1.1j)) != 1.1j # rounding error
> assert complex(cast(p, 1E200+3j)) == INF+3j # limited range
E AssertionError: assert (21918092+3j) == (inf + 3j)
E + where (21918092+3j) = complex(<cdata 'float _Complex' (21918092+3j)>)
E + where <cdata 'float _Complex' (21918092+3j)> = cast(<ctype 'float _Complex'>, (1e+200 + 3j))
c/test_c.py:210: AssertionError
______________________________ TestFFI.test_float ______________________________
self = <testing.cffi0.test_ffi_backend.TestFFI object at 0x7fffaef9b048>
def test_float(self):
ffi = FFI(backend=self.Backend())
p = ffi.new("float[]", [-2, -2.5])
assert p[0] == -2.0
assert p[1] == -2.5
p[1] += 17.75
assert p[1] == 15.25
#
p = ffi.new("float*", 15.75)
assert p[0] == 15.75
py.test.raises(TypeError, int, p)
py.test.raises(TypeError, float, p)
p[0] = 0.0
assert bool(p) is True
#
p = ffi.new("float*", 1.1)
f = p[0]
assert f != 1.1 # because of rounding effect
assert abs(f - 1.1) < 1E-7
#
INF = 1E200 * 1E200
assert 1E200 != INF
p[0] = 1E200
> assert p[0] == INF # infinite, not enough precision
E AssertionError
testing/cffi0/backend_tests.py:416: AssertionError
____________________________ TestNewFFI1.test_float ____________________________
self = <testing.cffi1.test_new_ffi_1.TestNewFFI1 instance at 0x7fffaeaaed48>
def test_float(self):
p = ffi.new("float[]", [-2, -2.5])
assert p[0] == -2.0
assert p[1] == -2.5
p[1] += 17.75
assert p[1] == 15.25
#
p = ffi.new("float*", 15.75)
assert p[0] == 15.75
py.test.raises(TypeError, int, p)
py.test.raises(TypeError, float, p)
p[0] = 0.0
assert bool(p) is True
#
p = ffi.new("float*", 1.1)
f = p[0]
assert f != 1.1 # because of rounding effect
assert abs(f - 1.1) < 1E-7
#
INF = 1E200 * 1E200
assert 1E200 != INF
p[0] = 1E200
> assert p[0] == INF # infinite, not enough precision
E assert 21918092.0 == inf
testing/cffi1/test_new_ffi_1.py:474: AssertionError
4 failed, 1859 passed, 106 skipped, 4 xfailed, 508 warnings in 235.82 seconds =
>>>>>>>>>>>>>>>>>>>>>>>>> x86
=================================== FAILURES ===================================
________________________ TestFFI.test_function_typedef _________________________
self = <testing.cffi0.test_ffi_backend.TestFFI object at 0xf62c9aec>
def test_function_typedef(self):
ffi = FFI(backend=self.Backend())
ffi.cdef("""
typedef double func_t(double);
func_t sin;
""")
m = ffi.dlopen(lib_m)
x = m.sin(1.23)
> assert x == math.sin(1.23)
E assert nan == 0.9424888019316975
E + where 0.9424888019316975 = <built-in function sin>(1.23)
E + where <built-in function sin> = math.sin
testing/cffi0/test_function.py:301: AssertionError
______________________ TestFunction.test_function_typedef ______________________
self = <testing.cffi0.test_function.TestFunction object at 0xf59fd24c>
def test_function_typedef(self):
ffi = FFI(backend=self.Backend())
ffi.cdef("""
typedef double func_t(double);
func_t sin;
""")
m = ffi.dlopen(lib_m)
x = m.sin(1.23)
> assert x == math.sin(1.23)
E assert nan == 0.9424888019316975
E + where 0.9424888019316975 = <built-in function sin>(1.23)
E + where <built-in function sin> = math.sin
testing/cffi0/test_function.py:301: AssertionError
2 failed, 1866 passed, 101 skipped, 4 xfailed, 504 warnings in 303.41 seconds =
|
|
|
|
| |
Built-in unit tests pass on x86_64 and mipseln8hf at least.
|
|
|
|
| |
This reverts commit aaf2d627aa99b8425b74e7ee39af33d70045fd5a.
|
|
|
|
|
|
|
|
|
|
| |
These built-in tests take time (15 min per python version on P5600,
should be roughly comparable on ARM A53) and surprisingly fail the
python3 thread-related units on x86_64 (but not on much more faulty
mipseln8hf). This is why the python3 part is set as optional.
The musl-compat.patch disables/fixes units with obvious glibcisms:
pretty %p formatting, writable stdout/stderr and RTLD_DEEPBIND.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
https://kb.isc.org/docs/dnssec-key-deletion-may-create-broken-nsec-and-nsec3-chains-and-unnecessary-rrsigs
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
FAIL: capnp-test
|
|
|
|
| |
This reverts commit 2979bb1d34e0253297e4fab4069848c638fa1aac.
|
|
|
|
| |
This reverts commit 28d9a37f27e810798196424f52208e6914924e24.
|