ctypeslib icon indicating copy to clipboard operation
ctypeslib copied to clipboard

Test failures on ARM and PowerPC

Open jayvdb opened this issue 4 years ago • 2 comments

Could be a mix of a few different bugs in here.

[   57s] ======================================================================
[   57s] ERROR: test_char (test_types_values.ConstantsTest)
[   57s] ----------------------------------------------------------------------
[   57s] Traceback (most recent call last):
[   57s]   File "/home/abuild/rpmbuild/BUILD/ctypeslib-2.2.2/test/test_types_values.py", line 123, in test_char
[   57s]     """)
[   57s]   File "/home/abuild/rpmbuild/BUILD/ctypeslib-2.2.2/test/util.py", line 168, in convert
[   57s]     self.gen(hfile, flags, debug)
[   57s]   File "/home/abuild/rpmbuild/BUILD/ctypeslib-2.2.2/test/util.py", line 153, in gen
[   57s]     exec(output, namespace)
[   57s]   File "<string>", line 12, in <module>
[   57s] NameError: name 'x' is not defined
[   57s] 
[   57s] ======================================================================
[   57s] FAIL: test_includes (test_fast_clang.CompareSizes)
[   57s] Test sizes of pod with std include.
[   57s] ----------------------------------------------------------------------
[   57s] Traceback (most recent call last):
[   57s]   File "/home/abuild/rpmbuild/BUILD/ctypeslib-2.2.2/test/test_fast_clang.py", line 54, in test_includes
[   57s]     self.assertSizes(name)
[   57s]   File "/home/abuild/rpmbuild/BUILD/ctypeslib-2.2.2/test/util.py", line 189, in assertSizes
[   57s]     name)
[   57s] AssertionError: False is not true : int8_t was not found in source
[   57s] 
[   57s] ======================================================================
[   57s] FAIL: test_array (test_types_values.ConstantsTest)
[   57s] ----------------------------------------------------------------------
[   57s] Traceback (most recent call last):
[   57s]   File "/home/abuild/rpmbuild/BUILD/ctypeslib-2.2.2/test/test_types_values.py", line 163, in test_array
[   57s]     self.assertEqual(self.namespace.c1, [])
[   57s] AssertionError: <class 'c_ubyte_Array_1'> != []
[   57s] 
[   57s] ======================================================================
[   57s] FAIL: test_char_p (test_types_values.ConstantsTest)
[   57s] ----------------------------------------------------------------------
[   57s] Traceback (most recent call last):
[   57s]   File "/home/abuild/rpmbuild/BUILD/ctypeslib-2.2.2/test/test_types_values.py", line 136, in test_char_p
[   57s]     self.assertEqual(self.namespace.x, [])
[   57s] AssertionError: <class 'c_ubyte_Array_10'> != []
[   57s] 
[   57s] ======================================================================
[   57s] FAIL: test_extern_function_pointer (test_types_values.ConstantsTest)
[   57s] ----------------------------------------------------------------------
[   57s] Traceback (most recent call last):
[   57s]   File "/home/abuild/rpmbuild/BUILD/ctypeslib-2.2.2/test/test_types_values.py", line 271, in test_extern_function_pointer
[   57s]     'LP_c_char')
[   57s] AssertionError: 'LP_c_ubyte' != 'LP_c_char'
[   57s] - LP_c_ubyte
[   57s] + LP_c_char

jayvdb avatar Oct 20 '19 07:10 jayvdb

int8_t was not found in source looks like a more general problem, possible older version of a header file collection

jayvdb avatar Oct 20 '19 07:10 jayvdb

Fixed by export CPATH=$(clang -print-resource-dir)/include

bnavigator avatar Apr 25 '21 12:04 bnavigator