Issue 16275: test_ctypes fails on Solaris 10 SPARC 2.7 (nitrogen/s10) (Sun C compiler) (original) (raw)
This should be a fun one to track down.
Relevant buildbot run: http://buildbot.python.org/all/builders/SPARC64%20Solaris%2010%20%5BSB%5D%202.7/builds/69/steps/test/logs/stdio
When recompiled with gcc 4.6.3 (/opt/csw/bin/gcc), test_ctypes passes without issue (on 2.7 and 3.2).
Going to try a local build of libffi from git with Sun C and --with-system-ffi to see if that helps.
====================================================================== FAIL: test_struct_return_2H (ctypes.test.test_as_parameter.AsParamPropertyWrapperTestCase)
Traceback (most recent call last): File "/home/cpython/buildslave/cc-32/2.7.snakebite-solaris10-u10ga2-sparc64-1/build/Lib/ctypes/test/test_as_parameter.py", line 172, in test_struct_return_2H self.assertEqual((s2h.x, s2h.y), (992, 883)) AssertionError: Tuples differ: (-65, -28679) != (198, 264)
First differing element 0: -65 198
- (-65, -28679)
- (198, 264)
====================================================================== FAIL: test_struct_return_8H (ctypes.test.test_as_parameter.AsParamPropertyWrapperTestCase)
Traceback (most recent call last): File "/home/cpython/buildslave/cc-32/2.7.snakebite-solaris10-u10ga2-sparc64-1/build/Lib/ctypes/test/test_as_parameter.py", line 189, in test_struct_return_8H (92, 83, 74, 65, 56, 47, 38, 29)) AssertionError: Tuples differ: (8412232, 9364168, 1, -4223016... != (18, 24, 28, 30, 30, 28, 24, 1...
First differing element 0: 8412232 18
- (8412232, 9364168, 1, -4223016, -8, -32, -4222983, 5425288)
- (18, 24, 28, 30, 30, 28, 24, 18)
====================================================================== FAIL: test_wchar_parm (ctypes.test.test_as_parameter.AsParamPropertyWrapperTestCase)
Traceback (most recent call last): File "/home/cpython/buildslave/cc-32/2.7.snakebite-solaris10-u10ga2-sparc64-1/build/Lib/ctypes/test/test_as_parameter.py", line 28, in test_wchar_parm self.assertEqual(result, 139) AssertionError: 138 != 139
====================================================================== FAIL: test_struct_return_2H (ctypes.test.test_as_parameter.AsParamWrapperTestCase)
Traceback (most recent call last): File "/home/cpython/buildslave/cc-32/2.7.snakebite-solaris10-u10ga2-sparc64-1/build/Lib/ctypes/test/test_as_parameter.py", line 172, in test_struct_return_2H self.assertEqual((s2h.x, s2h.y), (992, 883)) AssertionError: Tuples differ: (-65, -28679) != (198, 264)
First differing element 0: -65 198
- (-65, -28679)
- (198, 264)
====================================================================== FAIL: test_struct_return_8H (ctypes.test.test_as_parameter.AsParamWrapperTestCase)
Traceback (most recent call last): File "/home/cpython/buildslave/cc-32/2.7.snakebite-solaris10-u10ga2-sparc64-1/build/Lib/ctypes/test/test_as_parameter.py", line 189, in test_struct_return_8H (92, 83, 74, 65, 56, 47, 38, 29)) AssertionError: Tuples differ: (8431512, 9370440, 1, -4223016... != (18, 24, 28, 30, 30, 28, 24, 1...
First differing element 0: 8431512 18
- (8431512, 9370440, 1, -4223016, -8, -32, -4222983, 5425848)
- (18, 24, 28, 30, 30, 28, 24, 18)
====================================================================== FAIL: test_wchar_parm (ctypes.test.test_as_parameter.AsParamWrapperTestCase)
Traceback (most recent call last): File "/home/cpython/buildslave/cc-32/2.7.snakebite-solaris10-u10ga2-sparc64-1/build/Lib/ctypes/test/test_as_parameter.py", line 28, in test_wchar_parm self.assertEqual(result, 139) AssertionError: 138 != 139
====================================================================== FAIL: test_struct_return_2H (ctypes.test.test_as_parameter.BasicWrapTestCase)
Traceback (most recent call last): File "/home/cpython/buildslave/cc-32/2.7.snakebite-solaris10-u10ga2-sparc64-1/build/Lib/ctypes/test/test_as_parameter.py", line 172, in test_struct_return_2H self.assertEqual((s2h.x, s2h.y), (992, 883)) AssertionError: Tuples differ: (-65, -28679) != (198, 264)
First differing element 0: -65 198
- (-65, -28679)
- (198, 264)
====================================================================== FAIL: test_struct_return_8H (ctypes.test.test_as_parameter.BasicWrapTestCase)
Traceback (most recent call last): File "/home/cpython/buildslave/cc-32/2.7.snakebite-solaris10-u10ga2-sparc64-1/build/Lib/ctypes/test/test_as_parameter.py", line 189, in test_struct_return_8H (92, 83, 74, 65, 56, 47, 38, 29)) AssertionError: Tuples differ: (5707864, 9374608, 1, -4223016... != (18, 24, 28, 30, 30, 28, 24, 1...
First differing element 0: 5707864 18
- (5707864, 9374608, 1, -4223016, -8, -32, -4222983, -25924296)
- (18, 24, 28, 30, 30, 28, 24, 18)
====================================================================== FAIL: test_wchar_parm (ctypes.test.test_as_parameter.BasicWrapTestCase)
Traceback (most recent call last): File "/home/cpython/buildslave/cc-32/2.7.snakebite-solaris10-u10ga2-sparc64-1/build/Lib/ctypes/test/test_as_parameter.py", line 28, in test_wchar_parm self.assertEqual(result, 139) AssertionError: 138 != 139
====================================================================== FAIL: test_ints (ctypes.test.test_bitfields.C_Test)
Traceback (most recent call last): File "/home/cpython/buildslave/cc-32/2.7.snakebite-solaris10-u10ga2-sparc64-1/build/Lib/ctypes/test/test_bitfields.py", line 40, in test_ints self.assertEqual((name, i, getattr(b, name)), (name, i, func(byref(b), name))) AssertionError: Tuples differ: ('A', 1, -1) != ('A', 1, 0)
First differing element 2: -1 0
- ('A', 1, -1) ? ^^
- ('A', 1, 0) ? ^
====================================================================== FAIL: test_shorts (ctypes.test.test_bitfields.C_Test)
Traceback (most recent call last): File "/home/cpython/buildslave/cc-32/2.7.snakebite-solaris10-u10ga2-sparc64-1/build/Lib/ctypes/test/test_bitfields.py", line 47, in test_shorts self.assertEqual((name, i, getattr(b, name)), (name, i, func(byref(b), name))) AssertionError: Tuples differ: ('M', 1, -1) != ('M', 1, 0)
First differing element 2: -1 0
- ('M', 1, -1) ? ^^
- ('M', 1, 0) ? ^
====================================================================== FAIL: test_byte (ctypes.test.test_callbacks.Callbacks)
Traceback (most recent call last): File "/home/cpython/buildslave/cc-32/2.7.snakebite-solaris10-u10ga2-sparc64-1/build/Lib/ctypes/test/test_callbacks.py", line 36, in test_byte self.check_type(c_byte, 42) File "/home/cpython/buildslave/cc-32/2.7.snakebite-solaris10-u10ga2-sparc64-1/build/Lib/ctypes/test/test_callbacks.py", line 22, in check_type self.assertEqual(self.got_args, (arg,)) AssertionError: Tuples differ: (0,) != (42,)
First differing element 0: 0 42
- (0,)
- (42,)
====================================================================== FAIL: test_char (ctypes.test.test_callbacks.Callbacks)
Traceback (most recent call last): File "/home/cpython/buildslave/cc-32/2.7.snakebite-solaris10-u10ga2-sparc64-1/build/Lib/ctypes/test/test_callbacks.py", line 91, in test_char self.check_type(c_char, "x") File "/home/cpython/buildslave/cc-32/2.7.snakebite-solaris10-u10ga2-sparc64-1/build/Lib/ctypes/test/test_callbacks.py", line 22, in check_type self.assertEqual(self.got_args, (arg,)) AssertionError: Tuples differ: ('\x00',) != ('x',)
First differing element 0:
x
- ('\x00',) ? - --
- ('x',)
====================================================================== FAIL: test_double (ctypes.test.test_callbacks.Callbacks)
Traceback (most recent call last): File "/home/cpython/buildslave/cc-32/2.7.snakebite-solaris10-u10ga2-sparc64-1/build/Lib/ctypes/test/test_callbacks.py", line 83, in test_double self.check_type(c_double, 3.14) File "/home/cpython/buildslave/cc-32/2.7.snakebite-solaris10-u10ga2-sparc64-1/build/Lib/ctypes/test/test_callbacks.py", line 30, in check_type self.assertEqual(self.got_args, (-3, arg)) AssertionError: Tuples differ: (0, 3.14) != (-3, 3.14)
First differing element 0: 0 -3
- (0, 3.14) ? ^
- (-3, 3.14) ? ^^
====================================================================== FAIL: test_int (ctypes.test.test_callbacks.Callbacks)
Traceback (most recent call last): File "/home/cpython/buildslave/cc-32/2.7.snakebite-solaris10-u10ga2-sparc64-1/build/Lib/ctypes/test/test_callbacks.py", line 50, in test_int self.check_type(c_int, 42) File "/home/cpython/buildslave/cc-32/2.7.snakebite-solaris10-u10ga2-sparc64-1/build/Lib/ctypes/test/test_callbacks.py", line 30, in check_type self.assertEqual(self.got_args, (-3, arg)) AssertionError: Tuples differ: (0, 42) != (-3, 42)
First differing element 0: 0 -3
- (0, 42) ? ^
- (-3, 42) ? ^^
====================================================================== FAIL: test_long (ctypes.test.test_callbacks.Callbacks)
Traceback (most recent call last): File "/home/cpython/buildslave/cc-32/2.7.snakebite-solaris10-u10ga2-sparc64-1/build/Lib/ctypes/test/test_callbacks.py", line 57, in test_long self.check_type(c_long, 42) File "/home/cpython/buildslave/cc-32/2.7.snakebite-solaris10-u10ga2-sparc64-1/build/Lib/ctypes/test/test_callbacks.py", line 30, in check_type self.assertEqual(self.got_args, (-3, arg)) AssertionError: Tuples differ: (0, 42) != (-3, 42)
First differing element 0: 0 -3
- (0, 42) ? ^
- (-3, 42) ? ^^
====================================================================== FAIL: test_longdouble (ctypes.test.test_callbacks.Callbacks)
Traceback (most recent call last): File "/home/cpython/buildslave/cc-32/2.7.snakebite-solaris10-u10ga2-sparc64-1/build/Lib/ctypes/test/test_callbacks.py", line 87, in test_longdouble self.check_type(c_longdouble, 3.14) File "/home/cpython/buildslave/cc-32/2.7.snakebite-solaris10-u10ga2-sparc64-1/build/Lib/ctypes/test/test_callbacks.py", line 30, in check_type self.assertEqual(self.got_args, (-3, arg)) AssertionError: Tuples differ: (0, 3.14) != (-3, 3.14)
First differing element 0: 0 -3
- (0, 3.14) ? ^
- (-3, 3.14) ? ^^
====================================================================== FAIL: test_longlong (ctypes.test.test_callbacks.Callbacks)
Traceback (most recent call last): File "/home/cpython/buildslave/cc-32/2.7.snakebite-solaris10-u10ga2-sparc64-1/build/Lib/ctypes/test/test_callbacks.py", line 65, in test_longlong self.check_type(c_longlong, 5948291757245277467) File "/home/cpython/buildslave/cc-32/2.7.snakebite-solaris10-u10ga2-sparc64-1/build/Lib/ctypes/test/test_callbacks.py", line 30, in check_type self.assertEqual(self.got_args, (-3, arg)) AssertionError: Tuples differ: (0, 5948291757245277467L) != (-3, 5948291757245277467L)
First differing element 0: 0 -3
- (0, 5948291757245277467L) ? ^
- (-3, 5948291757245277467L) ? ^^
====================================================================== FAIL: test_pyobject (ctypes.test.test_callbacks.Callbacks)
Traceback (most recent call last): File "/home/cpython/buildslave/cc-32/2.7.snakebite-solaris10-u10ga2-sparc64-1/build/Lib/ctypes/test/test_callbacks.py", line 107, in test_pyobject self.check_type(py_object, o) File "/home/cpython/buildslave/cc-32/2.7.snakebite-solaris10-u10ga2-sparc64-1/build/Lib/ctypes/test/test_callbacks.py", line 30, in check_type self.assertEqual(self.got_args, (-3, arg)) AssertionError: Tuples differ: (0, ()) != (-3, ())
First differing element 0: 0 -3
- (0, ()) ? ^
- (-3, ()) ? ^^
====================================================================== FAIL: test_short (ctypes.test.test_callbacks.Callbacks)
Traceback (most recent call last): File "/home/cpython/buildslave/cc-32/2.7.snakebite-solaris10-u10ga2-sparc64-1/build/Lib/ctypes/test/test_callbacks.py", line 43, in test_short self.check_type(c_short, 42) File "/home/cpython/buildslave/cc-32/2.7.snakebite-solaris10-u10ga2-sparc64-1/build/Lib/ctypes/test/test_callbacks.py", line 22, in check_type self.assertEqual(self.got_args, (arg,)) AssertionError: Tuples differ: (0,) != (42,)
First differing element 0: 0 42
- (0,)
- (42,)
====================================================================== FAIL: test_ubyte (ctypes.test.test_callbacks.Callbacks)
Traceback (most recent call last): File "/home/cpython/buildslave/cc-32/2.7.snakebite-solaris10-u10ga2-sparc64-1/build/Lib/ctypes/test/test_callbacks.py", line 40, in test_ubyte self.check_type(c_ubyte, 42) File "/home/cpython/buildslave/cc-32/2.7.snakebite-solaris10-u10ga2-sparc64-1/build/Lib/ctypes/test/test_callbacks.py", line 22, in check_type self.assertEqual(self.got_args, (arg,)) AssertionError: Tuples differ: (0,) != (42,)
First differing element 0: 0 42
- (0,)
- (42,)
====================================================================== FAIL: test_uint (ctypes.test.test_callbacks.Callbacks)
Traceback (most recent call last): File "/home/cpython/buildslave/cc-32/2.7.snakebite-solaris10-u10ga2-sparc64-1/build/Lib/ctypes/test/test_callbacks.py", line 54, in test_uint self.check_type(c_uint, 42) File "/home/cpython/buildslave/cc-32/2.7.snakebite-solaris10-u10ga2-sparc64-1/build/Lib/ctypes/test/test_callbacks.py", line 30, in check_type self.assertEqual(self.got_args, (-3, arg)) AssertionError: Tuples differ: (0, 42L) != (-3, 42)
First differing element 0: 0 -3
- (0, 42L) ? ^ -
- (-3, 42) ? ^^
====================================================================== FAIL: test_ulong (ctypes.test.test_callbacks.Callbacks)
Traceback (most recent call last): File "/home/cpython/buildslave/cc-32/2.7.snakebite-solaris10-u10ga2-sparc64-1/build/Lib/ctypes/test/test_callbacks.py", line 61, in test_ulong self.check_type(c_ulong, 42) File "/home/cpython/buildslave/cc-32/2.7.snakebite-solaris10-u10ga2-sparc64-1/build/Lib/ctypes/test/test_callbacks.py", line 30, in check_type self.assertEqual(self.got_args, (-3, arg)) AssertionError: Tuples differ: (0, 42L) != (-3, 42)
First differing element 0: 0 -3
- (0, 42L) ? ^ -
- (-3, 42) ? ^^
====================================================================== FAIL: test_ulonglong (ctypes.test.test_callbacks.Callbacks)
Traceback (most recent call last): File "/home/cpython/buildslave/cc-32/2.7.snakebite-solaris10-u10ga2-sparc64-1/build/Lib/ctypes/test/test_callbacks.py", line 72, in test_ulonglong self.check_type(c_ulonglong, 10955412242170339782) File "/home/cpython/buildslave/cc-32/2.7.snakebite-solaris10-u10ga2-sparc64-1/build/Lib/ctypes/test/test_callbacks.py", line 30, in check_type self.assertEqual(self.got_args, (-3, arg)) AssertionError: Tuples differ: (0, 10955412242170339782L) != (-3, 10955412242170339782L)
First differing element 0: 0 -3
- (0, 10955412242170339782L) ? ^
- (-3, 10955412242170339782L) ? ^^
====================================================================== FAIL: test_ushort (ctypes.test.test_callbacks.Callbacks)
Traceback (most recent call last): File "/home/cpython/buildslave/cc-32/2.7.snakebite-solaris10-u10ga2-sparc64-1/build/Lib/ctypes/test/test_callbacks.py", line 47, in test_ushort self.check_type(c_ushort, 42) File "/home/cpython/buildslave/cc-32/2.7.snakebite-solaris10-u10ga2-sparc64-1/build/Lib/ctypes/test/test_callbacks.py", line 22, in check_type self.assertEqual(self.got_args, (arg,)) AssertionError: Tuples differ: (0,) != (42,)
First differing element 0: 0 42
- (0,)
- (42,)
====================================================================== FAIL: test_byte (ctypes.test.test_cfuncs.CFunctions)
Traceback (most recent call last): File "/home/cpython/buildslave/cc-32/2.7.snakebite-solaris10-u10ga2-sparc64-1/build/Lib/ctypes/test/test_cfuncs.py", line 20, in test_byte self.assertEqual(self._dll.tf_b(-126), -42) AssertionError: 0 != -42
====================================================================== FAIL: test_byte_plus (ctypes.test.test_cfuncs.CFunctions)
Traceback (most recent call last): File "/home/cpython/buildslave/cc-32/2.7.snakebite-solaris10-u10ga2-sparc64-1/build/Lib/ctypes/test/test_cfuncs.py", line 26, in test_byte_plus self.assertEqual(self._dll.tf_bb(0, -126), -42) AssertionError: 0 != -42
====================================================================== FAIL: test_longdouble (ctypes.test.test_cfuncs.CFunctions)
Traceback (most recent call last): File "/home/cpython/buildslave/cc-32/2.7.snakebite-solaris10-u10ga2-sparc64-1/build/Lib/ctypes/test/test_cfuncs.py", line 164, in test_longdouble self.assertEqual(self._dll.tf_D(42.), 14.) AssertionError: nan != 14.0
====================================================================== FAIL: test_longdouble_plus (ctypes.test.test_cfuncs.CFunctions)
Traceback (most recent call last): File "/home/cpython/buildslave/cc-32/2.7.snakebite-solaris10-u10ga2-sparc64-1/build/Lib/ctypes/test/test_cfuncs.py", line 170, in test_longdouble_plus self.assertEqual(self._dll.tf_bD(0, 42.), 14.) AssertionError: nan != 14.0
====================================================================== FAIL: test_short (ctypes.test.test_cfuncs.CFunctions)
Traceback (most recent call last): File "/home/cpython/buildslave/cc-32/2.7.snakebite-solaris10-u10ga2-sparc64-1/build/Lib/ctypes/test/test_cfuncs.py", line 44, in test_short self.assertEqual(self._dll.tf_h(-32766), -10922) AssertionError: 0 != -10922
====================================================================== FAIL: test_short_plus (ctypes.test.test_cfuncs.CFunctions)
Traceback (most recent call last): File "/home/cpython/buildslave/cc-32/2.7.snakebite-solaris10-u10ga2-sparc64-1/build/Lib/ctypes/test/test_cfuncs.py", line 50, in test_short_plus self.assertEqual(self._dll.tf_bh(0, -32766), -10922) AssertionError: 0 != -10922
====================================================================== FAIL: test_ubyte (ctypes.test.test_cfuncs.CFunctions)
Traceback (most recent call last): File "/home/cpython/buildslave/cc-32/2.7.snakebite-solaris10-u10ga2-sparc64-1/build/Lib/ctypes/test/test_cfuncs.py", line 32, in test_ubyte self.assertEqual(self._dll.tf_B(255), 85) AssertionError: 0 != 85
====================================================================== FAIL: test_ubyte_plus (ctypes.test.test_cfuncs.CFunctions)
Traceback (most recent call last): File "/home/cpython/buildslave/cc-32/2.7.snakebite-solaris10-u10ga2-sparc64-1/build/Lib/ctypes/test/test_cfuncs.py", line 38, in test_ubyte_plus self.assertEqual(self._dll.tf_bB(0, 255), 85) AssertionError: 0 != 85
====================================================================== FAIL: test_ushort (ctypes.test.test_cfuncs.CFunctions)
Traceback (most recent call last): File "/home/cpython/buildslave/cc-32/2.7.snakebite-solaris10-u10ga2-sparc64-1/build/Lib/ctypes/test/test_cfuncs.py", line 56, in test_ushort self.assertEqual(self._dll.tf_H(65535), 21845) AssertionError: 0 != 21845
====================================================================== FAIL: test_ushort_plus (ctypes.test.test_cfuncs.CFunctions)
Traceback (most recent call last): File "/home/cpython/buildslave/cc-32/2.7.snakebite-solaris10-u10ga2-sparc64-1/build/Lib/ctypes/test/test_cfuncs.py", line 62, in test_ushort_plus self.assertEqual(self._dll.tf_bH(0, 65535), 21845) AssertionError: 0 != 21845
====================================================================== FAIL: test_dllfunctions (ctypes.test.test_funcptr.CFuncPtrTestCase)
Traceback (most recent call last): File "/home/cpython/buildslave/cc-32/2.7.snakebite-solaris10-u10ga2-sparc64-1/build/Lib/ctypes/test/test_funcptr.py", line 100, in test_dllfunctions self.assertEqual(strchr("abcdefghi", "b"), "bcdefghi") AssertionError: '' != 'bcdefghi'
====================================================================== FAIL: test_doubleresult (ctypes.test.test_functions.FunctionTestCase)
Traceback (most recent call last): File "/home/cpython/buildslave/cc-32/2.7.snakebite-solaris10-u10ga2-sparc64-1/build/Lib/ctypes/test/test_functions.py", line 139, in test_doubleresult self.assertEqual(result, 21) AssertionError: 18.0 != 21
====================================================================== FAIL: test_floatresult (ctypes.test.test_functions.FunctionTestCase)
Traceback (most recent call last): File "/home/cpython/buildslave/cc-32/2.7.snakebite-solaris10-u10ga2-sparc64-1/build/Lib/ctypes/test/test_functions.py", line 127, in test_floatresult self.assertEqual(result, 21) AssertionError: 18.0 != 21
====================================================================== FAIL: test_intresult (ctypes.test.test_functions.FunctionTestCase)
Traceback (most recent call last): File "/home/cpython/buildslave/cc-32/2.7.snakebite-solaris10-u10ga2-sparc64-1/build/Lib/ctypes/test/test_functions.py", line 101, in test_intresult self.assertEqual(result, 21) AssertionError: 18 != 21
====================================================================== FAIL: test_longdoubleresult (ctypes.test.test_functions.FunctionTestCase)
Traceback (most recent call last): File "/home/cpython/buildslave/cc-32/2.7.snakebite-solaris10-u10ga2-sparc64-1/build/Lib/ctypes/test/test_functions.py", line 151, in test_longdoubleresult self.assertEqual(result, 21) AssertionError: nan != 21
====================================================================== FAIL: test_longlongresult (ctypes.test.test_functions.FunctionTestCase)
Traceback (most recent call last): File "/home/cpython/buildslave/cc-32/2.7.snakebite-solaris10-u10ga2-sparc64-1/build/Lib/ctypes/test/test_functions.py", line 167, in test_longlongresult self.assertEqual(result, 21) AssertionError: 18L != 21
====================================================================== FAIL: test_struct_return_2H (ctypes.test.test_functions.FunctionTestCase)
Traceback (most recent call last): File "/home/cpython/buildslave/cc-32/2.7.snakebite-solaris10-u10ga2-sparc64-1/build/Lib/ctypes/test/test_functions.py", line 349, in test_struct_return_2H self.assertEqual((s2h.x, s2h.y), (992, 883)) AssertionError: Tuples differ: (-65, -28679) != (198, 264)
First differing element 0: -65 198
- (-65, -28679)
- (198, 264)
====================================================================== FAIL: test_struct_return_8H (ctypes.test.test_functions.FunctionTestCase)
Traceback (most recent call last): File "/home/cpython/buildslave/cc-32/2.7.snakebite-solaris10-u10ga2-sparc64-1/build/Lib/ctypes/test/test_functions.py", line 377, in test_struct_return_8H (92, 83, 74, 65, 56, 47, 38, 29)) AssertionError: Tuples differ: (5707864, 9758944, 1, -4223016... != (18, 24, 28, 30, 30, 28, 24, 1...
First differing element 0: 5707864 18
- (5707864, 9758944, 1, -4223016, -8, -32, -4222983, -25924296)
- (18, 24, 28, 30, 30, 28, 24, 18)
====================================================================== FAIL: test_wchar_parm (ctypes.test.test_functions.FunctionTestCatest test_ctypes failed -- multiple errors occurred se)
Traceback (most recent call last): File "/home/cpython/buildslave/cc-32/2.7.snakebite-solaris10-u10ga2-sparc64-1/build/Lib/ctypes/test/test_functions.py", line 74, in test_wchar_parm self.assertEqual(result, 139) AssertionError: 138 != 139
====================================================================== FAIL: test_with_prototype (ctypes.test.test_returnfuncptrs.ReturnFuncPtrTestCase)
Traceback (most recent call last): File "/home/cpython/buildslave/cc-32/2.7.snakebite-solaris10-u10ga2-sparc64-1/build/Lib/ctypes/test/test_returnfuncptrs.py", line 15, in test_with_prototype self.assertEqual(strchr("abcdef", "b"), "bcdef") AssertionError: '' != 'bcdef'
====================================================================== FAIL: test_without_prototype (ctypes.test.test_returnfuncptrs.ReturnFuncPtrTestCase)
Traceback (most recent call last): File "/home/cpython/buildslave/cc-32/2.7.snakebite-solaris10-u10ga2-sparc64-1/build/Lib/ctypes/test/test_returnfuncptrs.py", line 29, in test_without_prototype self.assertTrue(strchr("abcdef", "b"), "bcdef") AssertionError: bcdef
====================================================================== FAIL: test_functions (ctypes.test.test_stringptr.StringPtrTestCase)
Traceback (most recent call last): File "/home/cpython/buildslave/cc-32/2.7.snakebite-solaris10-u10ga2-sparc64-1/build/Lib/ctypes/test/test_stringptr.py", line 51, in test_functions self.assertEqual(strchr("abcdef", "c"), "cdef") AssertionError: '' != 'cdef'
Ran 340 tests in 2.623s
FAILED (failures=47, skipped=2)
With the latest build (from git) of libffi, tests still fail, but differently.
(These errors seem slightly less perverse than the ones pasted previously.)
====================================================================== FAIL: test_wchar_parm (ctypes.test.test_as_parameter.AsParamPropertyWrapperTestCase)
Traceback (most recent call last): File "/home/cpython/hg/2.7/Lib/ctypes/test/test_as_parameter.py", line 28, in test_wchar_parm self.assertEqual(result, 139) AssertionError: 138 != 139
====================================================================== FAIL: test_wchar_parm (ctypes.test.test_as_parameter.AsParamWrapperTestCase)
Traceback (most recent call last): File "/home/cpython/hg/2.7/Lib/ctypes/test/test_as_parameter.py", line 28, in test_wchar_parm self.assertEqual(result, 139) AssertionError: 138 != 139
====================================================================== FAIL: test_wchar_parm (ctypes.test.test_as_parameter.BasicWrapTestCase)
Traceback (most recent call last): File "/home/cpython/hg/2.7/Lib/ctypes/test/test_as_parameter.py", line 28, in test_wchar_parm self.assertEqual(result, 139) AssertionError: 138 != 139
====================================================================== FAIL: test_ints (ctypes.test.test_bitfields.C_Test)
Traceback (most recent call last): File "/home/cpython/hg/2.7/Lib/ctypes/test/test_bitfields.py", line 40, in test_ints self.assertEqual((name, i, getattr(b, name)), (name, i, func(byref(b), name))) AssertionError: Tuples differ: ('A', 1, -1) != ('A', 1, 0)
First differing element 2: -1 0
- ('A', 1, -1) ? ^^
- ('A', 1, 0) ? ^
====================================================================== FAIL: test_shorts (ctypes.test.test_bitfields.C_Test)
Traceback (most recent call last): File "/home/cpython/hg/2.7/Lib/ctypes/test/test_bitfields.py", line 47, in test_shorts self.assertEqual((name, i, getattr(b, name)), (name, i, func(byref(b), name))) AssertionError: Tuples differ: ('M', 1, -1) != ('M', 1, 0)
First differing element 2: -1 0
- ('M', 1, -1) ? ^^
- ('M', 1, 0) ? ^
====================================================================== FAIL: test_byte (ctypes.test.test_callbacks.Callbacks)
Traceback (most recent call last): File "/home/cpython/hg/2.7/Lib/ctypes/test/test_callbacks.py", line 36, in test_byte self.check_type(c_byte, 42) File "/home/cpython/hg/2.7/Lib/ctypes/test/test_callbacks.py", line 22, in check_type self.assertEqual(self.got_args, (arg,)) AssertionError: Tuples differ: (0,) != (42,)
First differing element 0: 0 42
- (0,)
- (42,)
====================================================================== FAIL: test_char (ctypes.test.test_callbacks.Callbacks)
Traceback (most recent call last): File "/home/cpython/hg/2.7/Lib/ctypes/test/test_callbacks.py", line 91, in test_char self.check_type(c_char, "x") File "/home/cpython/hg/2.7/Lib/ctypes/test/test_callbacks.py", line 22, in check_type self.assertEqual(self.got_args, (arg,)) AssertionError: Tuples differ: ('\x00',) != ('x',)
First differing element 0:
x
- ('\x00',) ? - --
- ('x',)
====================================================================== FAIL: test_double (ctypes.test.test_callbacks.Callbacks)
Traceback (most recent call last): File "/home/cpython/hg/2.7/Lib/ctypes/test/test_callbacks.py", line 83, in test_double self.check_type(c_double, 3.14) File "/home/cpython/hg/2.7/Lib/ctypes/test/test_callbacks.py", line 30, in check_type self.assertEqual(self.got_args, (-3, arg)) AssertionError: Tuples differ: (0, 3.14) != (-3, 3.14)
First differing element 0: 0 -3
- (0, 3.14) ? ^
- (-3, 3.14) ? ^^
====================================================================== FAIL: test_int (ctypes.test.test_callbacks.Callbacks)
Traceback (most recent call last): File "/home/cpython/hg/2.7/Lib/ctypes/test/test_callbacks.py", line 50, in test_int self.check_type(c_int, 42) File "/home/cpython/hg/2.7/Lib/ctypes/test/test_callbacks.py", line 30, in check_type self.assertEqual(self.got_args, (-3, arg)) AssertionError: Tuples differ: (0, 42) != (-3, 42)
First differing element 0: 0 -3
- (0, 42) ? ^
- (-3, 42) ? ^^
====================================================================== FAIL: test_long (ctypes.test.test_callbacks.Callbacks)
Traceback (most recent call last): File "/home/cpython/hg/2.7/Lib/ctypes/test/test_callbacks.py", line 57, in test_long self.check_type(c_long, 42) File "/home/cpython/hg/2.7/Lib/ctypes/test/test_callbacks.py", line 30, in check_type self.assertEqual(self.got_args, (-3, arg)) AssertionError: Tuples differ: (0, 42) != (-3, 42)
First differing element 0: 0 -3
- (0, 42) ? ^
- (-3, 42) ? ^^
====================================================================== FAIL: test_longdouble (ctypes.test.test_callbacks.Callbacks)
Traceback (most recent call last): File "/home/cpython/hg/2.7/Lib/ctypes/test/test_callbacks.py", line 87, in test_longdouble self.check_type(c_longdouble, 3.14) File "/home/cpython/hg/2.7/Lib/ctypes/test/test_callbacks.py", line 30, in check_type self.assertEqual(self.got_args, (-3, arg)) AssertionError: Tuples differ: (0, 3.14) != (-3, 3.14)
First differing element 0: 0 -3
- (0, 3.14) ? ^
- (-3, 3.14) ? ^^
====================================================================== FAIL: test_longlong (ctypes.test.test_callbacks.Callbacks)
Traceback (most recent call last): File "/home/cpython/hg/2.7/Lib/ctypes/test/test_callbacks.py", line 65, in test_longlong self.check_type(c_longlong, 5948291757245277467) File "/home/cpython/hg/2.7/Lib/ctypes/test/test_callbacks.py", line 30, in check_type self.assertEqual(self.got_args, (-3, arg)) AssertionError: Tuples differ: (0, 5948291757245277467L) != (-3, 5948291757245277467L)
First differing element 0: 0 -3
- (0, 5948291757245277467L) ? ^
- (-3, 5948291757245277467L) ? ^^
====================================================================== FAIL: test_pyobject (ctypes.test.test_callbacks.Callbacks)
Traceback (most recent call last): File "/home/cpython/hg/2.7/Lib/ctypes/test/test_callbacks.py", line 107, in test_pyobject self.check_type(py_object, o) File "/home/cpython/hg/2.7/Lib/ctypes/test/test_callbacks.py", line 30, in check_type self.assertEqual(self.got_args, (-3, arg)) AssertionError: Tuples differ: (0, ()) != (-3, ())
First differing element 0: 0 -3
- (0, ()) ? ^
- (-3, ()) ? ^^
====================================================================== FAIL: test_short (ctypes.test.test_callbacks.Callbacks)
Traceback (most recent call last): File "/home/cpython/hg/2.7/Lib/ctypes/test/test_callbacks.py", line 43, in test_short self.check_type(c_short, 42) File "/home/cpython/hg/2.7/Lib/ctypes/test/test_callbacks.py", line 22, in check_type self.assertEqual(self.got_args, (arg,)) AssertionError: Tuples differ: (0,) != (42,)
First differing element 0: 0 42
- (0,)
- (42,)
====================================================================== FAIL: test_ubyte (ctypes.test.test_callbacks.Callbacks)
Traceback (most recent call last): File "/home/cpython/hg/2.7/Lib/ctypes/test/test_callbacks.py", line 40, in test_ubyte self.check_type(c_ubyte, 42) File "/home/cpython/hg/2.7/Lib/ctypes/test/test_callbacks.py", line 22, in check_type self.assertEqual(self.got_args, (arg,)) AssertionError: Tuples differ: (0,) != (42,)
First differing element 0: 0 42
- (0,)
- (42,)
====================================================================== FAIL: test_uint (ctypes.test.test_callbacks.Callbacks)
Traceback (most recent call last): File "/home/cpython/hg/2.7/Lib/ctypes/test/test_callbacks.py", line 54, in test_uint self.check_type(c_uint, 42) File "/home/cpython/hg/2.7/Lib/ctypes/test/test_callbacks.py", line 30, in check_type self.assertEqual(self.got_args, (-3, arg)) AssertionError: Tuples differ: (0, 42L) != (-3, 42)
First differing element 0: 0 -3
- (0, 42L) ? ^ -
- (-3, 42) ? ^^
====================================================================== FAIL: test_ulong (ctypes.test.test_callbacks.Callbacks)
Traceback (most recent call last): File "/home/cpython/hg/2.7/Lib/ctypes/test/test_callbacks.py", line 61, in test_ulong self.check_type(c_ulong, 42) File "/home/cpython/hg/2.7/Lib/ctypes/test/test_callbacks.py", line 30, in check_type self.assertEqual(self.got_args, (-3, arg)) AssertionError: Tuples differ: (0, 42L) != (-3, 42)
First differing element 0: 0 -3
- (0, 42L) ? ^ -
- (-3, 42) ? ^^
====================================================================== FAIL: test_ulonglong (ctypes.test.test_callbacks.Callbacks)
Traceback (most recent call last): File "/home/cpython/hg/2.7/Lib/ctypes/test/test_callbacks.py", line 72, in test_ulonglong self.check_type(c_ulonglong, 10955412242170339782) File "/home/cpython/hg/2.7/Lib/ctypes/test/test_callbacks.py", line 30, in check_type self.assertEqual(self.got_args, (-3, arg)) AssertionError: Tuples differ: (0, 10955412242170339782L) != (-3, 10955412242170339782L)
First differing element 0: 0 -3
- (0, 10955412242170339782L) ? ^
- (-3, 10955412242170339782L) ? ^^
====================================================================== FAIL: test_ushort (ctypes.test.test_callbacks.Callbacks)
Traceback (most recent call last): File "/home/cpython/hg/2.7/Lib/ctypes/test/test_callbacks.py", line 47, in test_ushort self.check_type(c_ushort, 42) File "/home/cpython/hg/2.7/Lib/ctypes/test/test_callbacks.py", line 22, in check_type self.assertEqual(self.got_args, (arg,)) AssertionError: Tuples differ: (0,) != (42,)
First differing element 0: 0 42
- (0,)
- (42,)
====================================================================== FAIL: test_byte (ctypes.test.test_cfuncs.CFunctions)
Traceback (most recent call last): File "/home/cpython/hg/2.7/Lib/ctypes/test/test_cfuncs.py", line 20, in test_byte self.assertEqual(self._dll.tf_b(-126), -42) AssertionError: 0 != -42
====================================================================== FAIL: test_byte_plus (ctypes.test.test_cfuncs.CFunctions)
Traceback (most recent call last): File "/home/cpython/hg/2.7/Lib/ctypes/test/test_cfuncs.py", line 26, in test_byte_plus self.assertEqual(self._dll.tf_bb(0, -126), -42) AssertionError: 0 != -42
====================================================================== FAIL: test_short (ctypes.test.test_cfuncs.CFunctions)
Traceback (most recent call last): File "/home/cpython/hg/2.7/Lib/ctypes/test/test_cfuncs.py", line 44, in test_short self.assertEqual(self._dll.tf_h(-32766), -10922) AssertionError: 0 != -10922
====================================================================== FAIL: test_short_plus (ctypes.test.test_cfuncs.CFunctions)
Traceback (most recent call last): File "/home/cpython/hg/2.7/Lib/ctypes/test/test_cfuncs.py", line 50, in test_short_plus self.assertEqual(self._dll.tf_bh(0, -32766), -10922) AssertionError: 0 != -10922
====================================================================== FAIL: test_ubyte (ctypes.test.test_cfuncs.CFunctions)
Traceback (most recent call last): File "/home/cpython/hg/2.7/Lib/ctypes/test/test_cfuncs.py", line 32, in test_ubyte self.assertEqual(self._dll.tf_B(255), 85) AssertionError: 0 != 85
====================================================================== FAIL: test_ubyte_plus (ctypes.test.test_cfuncs.CFunctions)
Traceback (most recent call last): File "/home/cpython/hg/2.7/Lib/ctypes/test/test_cfuncs.py", line 38, in test_ubyte_plus self.assertEqual(self._dll.tf_bB(0, 255), 85) AssertionError: 0 != 85
====================================================================== FAIL: test_ushort (ctypes.test.test_cfuncs.CFunctions)
Traceback (most recent call last): File "/home/cpython/hg/2.7/Lib/ctypes/test/test_cfuncs.py", line 56, in test_ushort self.assertEqual(self._dll.tf_H(65535), 21845) AssertionError: 0 != 21845
====================================================================== FAIL: test_ushort_plus (ctypes.test.test_cfuncs.CFunctions)
Traceback (most recent call last): File "/home/cpython/hg/2.7/Lib/ctypes/test/test_cfuncs.py", line 62, in test_ushort_plus self.assertEqual(self._dll.tf_bH(0, 65535), 21845) AssertionError: 0 != 21845
====================================================================== FAIL: test_dllfunctions (ctypes.test.test_funcptr.CFuncPtrTestCase)
Traceback (most recent call last): File "/home/cpython/hg/2.7/Lib/ctypes/test/test_funcptr.py", line 100, in test_dllfunctions self.assertEqual(strchr("abcdefghi", "b"), "bcdefghi") AssertionError: '' != 'bcdefghi'
====================================================================== FAIL: test_doubleresult (ctypes.test.test_functions.FunctionTestCase)
Traceback (most recent call last): File "/home/cpython/hg/2.7/Lib/ctypes/test/test_functions.py", line 139, in test_doubleresult self.assertEqual(result, 21) AssertionError: 18.0 != 21
====================================================================== FAIL: test_floatresult (ctypes.test.test_functions.FunctionTestCase)
Traceback (most recent call last): File "/home/cpython/hg/2.7/Lib/ctypes/test/test_functions.py", line 127, in test_floatresult self.assertEqual(result, 21) AssertionError: 18.0 != 21
====================================================================== FAIL: test_intresult (ctypes.test.test_functions.FunctionTestCase)
Traceback (most recent call last): File "/home/cpython/hg/2.7/Lib/ctypes/test/test_functions.py", line 101, in test_intresult self.assertEqual(result, 21) AssertionError: 18 != 21
====================================================================== FAIL: test_longdoubleresult (ctypes.test.test_functions.FunctionTestCase)
Traceback (most recent call last): File "/home/cpython/hg/2.7/Lib/ctypes/test/test_functions.py", line 151, in test_longdoubleresult self.assertEqual(result, 21) AssertionError: 18.0 != 21
====================================================================== FAIL: test_longlongresult (ctypes.test.test_functions.FunctionTestCase)
Traceback (most recent call last): File "/home/cpython/hg/2.7/Lib/ctypes/test/test_functions.py", line 167, in test_longlongresult self.assertEqual(result, 21) AssertionError: 18L != 21
====================================================================== FAIL: test_wchar_parm (ctypes.test.test_functions.FunctionTestCase)
Traceback (most recent call last): File "/home/cpython/hg/2.7/Lib/ctypes/test/test_functions.py", line 74, in test_wchar_parm self.assertEqual(result, 139) AssertionError: 138 != 139
====================================================================== FAIL: test_with_prototype (ctypes.test.test_returnfuncptrs.ReturnFuncPtrTestCase)
Traceback (most recent call last): File "/home/cpython/hg/2.7/Lib/ctypes/test/test_returnfuncptrs.py", line 15, in test_with_prototype self.assertEqual(strchr("abcdef", "b"), "bcdef") AssertionError: '' != 'bcdef'
====================================================================== FAIL: test_without_prototype (ctypes.test.test_returnfuncptrs.ReturnFuncPtrTestCase)
Traceback (most recent call last): File "/home/cpython/hg/2.7/Lib/ctypes/test/test_returnfuncptrs.py", line 29, in test_without_prototype self.assertTrue(strchr("abcdef", "b"), "bcdef") AssertionError: bcdef
====================================================================== FAIL: test_functions (ctypes.test.test_stringptr.StringPtrTestCase)
Traceback (most recent call last): File "/home/cpython/hg/2.7/Lib/ctypes/test/test_stringptr.py", line 51, in test_functions self.assertEqual(strchr("abcdef", "c"), "cdef") AssertionError: '' != 'cdef'
Ran 340 tests in 2.567s
FAILED (failures=37, skipped=2)