Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failing tests on i686 #150

Open
unspecd opened this issue Jun 28, 2022 · 0 comments
Open

Failing tests on i686 #150

unspecd opened this issue Jun 28, 2022 · 0 comments

Comments

@unspecd
Copy link

unspecd commented Jun 28, 2022

System Information

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 =========================
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant