You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Version of pygccxml: 2.2.1, Python 3.10.5, Linux-5.18.7 i686, gcc 10.2.1 2020120.
=================================== FAILURES ===================================
__________________________ Test.test_keep_va_list_tag __________________________
self = <unittests.test_va_list_tag_removal.Test testMethod=test_keep_va_list_tag>
def test_keep_va_list_tag(self):
if "gccxml" in self.config.xml_generator or \
platform.system() == 'Windows':
return True
self.config.flags = ["f1"]
src_reader = parser.source_reader_t(self.config)
decls = declarations.make_flatten(src_reader.read_string(self.__code))
classes = [
i for i in decls if isinstance(i, declarations.class_t)]
typedefs = [
i for i in decls if isinstance(i, declarations.typedef_t)]
variables = [
i for i in decls if isinstance(i, declarations.variable_t)]
tag = "__va_list_tag"
> self.assertTrue(tag in [class_.name for class_ in classes])
E AssertionError: False is not true
unittests/test_va_list_tag_removal.py:58: AssertionError
_________________________ Test.test_remove_va_list_tag _________________________
self = <unittests.test_va_list_tag_removal.Test testMethod=test_remove_va_list_tag>
def test_remove_va_list_tag(self):
if "gccxml" in self.config.xml_generator or \
platform.system() == 'Windows':
return True
self.config.flags = []
src_reader = parser.source_reader_t(self.config)
decls = declarations.make_flatten(src_reader.read_string(self.__code))
classes = [
i for i in decls if isinstance(i, declarations.class_t)]
typedefs = [
i for i in decls if isinstance(i, declarations.typedef_t)]
variables = [
i for i in decls if isinstance(i, declarations.variable_t)]
tag = "__va_list_tag"
self.assertFalse(tag in [class_.name for class_ in classes])
self.assertTrue("a" in [class_.name for class_ in classes])
self.assertTrue(len(classes) == 1)
self.assertFalse(tag in [ty.name for ty in typedefs])
> self.assertTrue(len(typedefs) == 3 or len(typedefs) == 4)
E AssertionError: False is not true
unittests/test_va_list_tag_removal.py:116: AssertionError
=========================== short test summary info ============================
FAILED unittests/test_va_list_tag_removal.py::Test::test_keep_va_list_tag - A...
FAILED unittests/test_va_list_tag_removal.py::Test::test_remove_va_list_tag
======================== 2 failed, 37 passed in 34.80s =========================
The text was updated successfully, but these errors were encountered:
System Information
Version of pygccxml: 2.2.1, Python 3.10.5, Linux-5.18.7 i686, gcc 10.2.1 2020120.
The text was updated successfully, but these errors were encountered: