Uploaded image for project: 'Qt for Python'
  1. Qt for Python
  2. PYSIDE-2281

New tests failures in shiboken 6.5.0

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P5: Not important
    • None
    • 6.5.0
    • Shiboken
    • None
    • Linux/X11

    Description

      When building with CMake, a couple more tests started failing in shiboken after the Qt 6.4.3 release

      CMake command line:

      cmake -DCMAKE_BUILD_TYPE:STRING=RelWithDebInfo -DCMAKE_INSTALL_PREFIX:STRING=/usr -DCMAKE_MESSAGE_LOG_LEVEL:STRING=STATUS -S . -B shiboken6 -GNinja '-DCMAKE_C_FLAGS:STRING=-O2 -Wall -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type -flto=auto -g' '-DCMAKE_CXX_FLAGS:STRING=-O2 -Wall -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type -flto=auto -g' '-DCMAKE_EXE_LINKER_FLAGS:STRING=-Wl,--as-needed -Wl,--no-undefined' '-DCMAKE_MODULE_LINKER_FLAGS:STRING=-Wl,--as-needed -Wl,--no-undefined' '-DCMAKE_SHARED_LINKER_FLAGS:STRING=-Wl,--as-needed -Wl,--no-undefined' -DBUILD_TESTS:BOOL=ON -DLIB_SUFFIX:STRING=64 -DCMAKE_C_FLAGS:STRING= -DCMAKE_CXX_FLAGS:STRING= -DCMAKE_EXE_LINKER_FLAGS:STRING= -DPYTHON_EXECUTABLE:STRING=python3 -DNUMPY_INCLUDE_DIR:STRING=/usr/lib64/python3.10/site-packages/numpy/core/include -DCMAKE_BUILD_RPATH_USE_ORIGIN:BOOL=ON -DCMAKE_SKIP_RPATH:BOOL=ON -DQFP_NO_STRIP:BOOL=ON

       

      CMake log:

      [   40s] -- The C compiler identification is GNU 13.0.1
      [   40s] -- The CXX compiler identification is GNU 13.0.1
      [   40s] -- Detecting C compiler ABI info
      [   40s] -- Detecting C compiler ABI info - done
      [   40s] -- Check for working C compiler: /usr/bin/cc - skipped
      [   40s] -- Detecting C compile features
      [   40s] -- Detecting C compile features - done
      [   40s] -- Detecting CXX compiler ABI info
      [   40s] -- Detecting CXX compiler ABI info - done
      [   40s] -- Check for working CXX compiler: /usr/bin/c++ - skipped
      [   40s] -- Detecting CXX compile features
      [   40s] -- Detecting CXX compile features - done
      [   40s] -- SHIBOKEN_IS_CROSS_BUILD: FALSE
      [   40s] -- SHIBOKEN_BUILD_LIBS: ON
      [   40s] -- SHIBOKEN_BUILD_TOOLS: ON
      [   40s] -- BUILD_TESTS: ON
      [   40s] -- Using Qt 6
      [   40s] -- Performing Test CMAKE_HAVE_LIBC_PTHREAD
      [   40s] -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
      [   40s] -- Found Threads: TRUE  
      [   40s] -- Performing Test HAVE_STDATOMIC
      [   41s] -- Performing Test HAVE_STDATOMIC - Success
      [   41s] -- Found WrapAtomic: TRUE  
      [   41s] -- Found PythonInterp: python3 (found version "3.10.10") 
      [   41s] -- Found PythonLibs: /usr/lib64/libpython3.10.so (found version "3.10.10") 
      [   41s] -- Could NOT find Terminfo (missing: Terminfo_LIBRARIES Terminfo_LINKABLE) 
      [   41s] -- Found ZLIB: /usr/lib64/libz.so (found version "1.2.13")  
      [   41s] -- Found LibXml2: /usr/lib64/libxml2.so (found version "2.10.3") 
      [   41s] -- CLANG: /usr/lib64/cmake/clang, /usr/lib64/libclang.so.13 detected
      [   41s] -- Could NOT find Git (missing: GIT_EXECUTABLE) 
      [   41s] -- PYTHONLIBS_FOUND:       TRUE
      [   41s] -- PYTHON_LIBRARIES:       /usr/lib64/libpython3.10.so
      [   41s] -- PYTHON_INCLUDE_DIRS:    /usr/include/python3.10
      [   41s] -- PYTHON_DEBUG_LIBRARIES: 
      [   41s] -- PYTHONINTERP_FOUND:     TRUE
      [   41s] -- PYTHON_EXECUTABLE:      python3
      [   41s] -- PYTHON_VERSION:         3.10.10
      [   41s] -- PYTHON_EXTENSION_SUFFIX: .cpython-310-x86_64-linux-gnu
      [   41s] -- PYTHON_LIMITED_LIBRARIES: 
      [   41s] -- ******************************************************
      [   41s] -- ** Limited API enabled 
      [   41s] -- ******************************************************
      [   41s] -- PYTHON_EXTENSION_SUFFIX:      .abi3
      [   41s] -- PYTHON_CONFIG_SUFFIX:         .abi3
      [   41s] -- PYTHON_SHARED_LIBRARY_SUFFIX: .abi3
      [   41s] -- Found LibXml2: /usr/lib64/libxml2.so (found suitable version "2.10.3", minimum required is "2.6.32") 
      [   41s] -- Found LibXslt: /usr/lib64/libxslt.so (found suitable version "1.1.37", minimum required is "1.1.19") 
      [   42s] -- NUMPY_INCLUDE_DIR: /usr/lib64/python3.10/site-packages/numpy/core/include
      [   42s] -- SHIBOKEN_PYTHON_INCLUDE_DIRS computed to value: '/usr/include/python3.10'
      [   42s] -- Linking shiboken to /usr/lib64/libpython3.10.so
      [   42s] -- SHIBOKEN_PYTHON_LIBRARIES computed to value: '/usr/lib64/libpython3.10.so'
      [   42s] -- sphinx-build - found
      [   42s] -- Tests will be generated using the protected hack!
      [   42s] -- Configuring done (2.0s)
      [   42s] -- Generating done (0.2s)
      
      

       

      Failing tests (executed with `ctest --output-on-failure --force-new-ctest-process --test-dir shiboken6 --parallel <jobs>` :

      [  302s] The following tests FAILED:
      [  302s] 	 12 - testenum (Failed)
      [  302s] 	 30 - testtemplates (SEGFAULT)
      [  302s] 	 82 - sample_enum (Failed)
      [  302s] 	 83 - sample_enumfromremovednamespace (Failed)
      [  302s] 	143 - sample_pen (Failed)
       

       

      testenum:

      [  294s]  17/188 Test  #12: testenum ...........................................................***Failed    0.37 sec
      [  294s] ********* Start testing of TestEnum *********
      [  294s] Config: Using QtTest library 6.5.0, Qt 6.5.0 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 13.0.1 20230314 (experimental) [revision 42630fadbe248717859d61c0244c821c32b4e52c]), unknown unknown
      [  294s] PASS   : TestEnum::initTestCase()
      [  294s] QINFO  : TestEnum::testEnumCppSignature() qt.shiboken: CLANG builtins includes directory: /usr/lib64/clang/16/include
      [  294s] QDEBUG : TestEnum::testEnumCppSignature() clang_parseTranslationUnit2(0x0, cmd[10]=-isystem/usr/lib64/clang/16/include -isystem/usr/include/c++/13 -isystem/usr/include/c++/13/x86_64-suse-linux -isystem/usr/include/c++/13/backward -fPIC -Wno-constant-logical-operand -x c++ -std=c++17 /tmp/st_QpXlDU_main.cpp)
      [  294s] PASS   : TestEnum::testEnumCppSignature()
      [  294s] QINFO  : TestEnum::testEnumWithApiVersion() qt.shiboken: CLANG builtins includes directory: /usr/lib64/clang/16/include
      [  294s] QDEBUG : TestEnum::testEnumWithApiVersion() clang_parseTranslationUnit2(0x0, cmd[10]=-isystem/usr/lib64/clang/16/include -isystem/usr/include/c++/13 -isystem/usr/include/c++/13/x86_64-suse-linux -isystem/usr/include/c++/13/backward -fPIC -Wno-constant-logical-operand -x c++ -std=c++17 /tmp/st_KYkThQ_main.cpp)
      [  294s] QWARN  : TestEnum::testEnumWithApiVersion() qt.shiboken: /tmp/st_KYkThQ_main.cpp:3:	Enum 'A::ClassEnum2' (class: A) does not have a type entry
      [  294s] PASS   : TestEnum::testEnumWithApiVersion()
      [  294s] QINFO  : TestEnum::testAnonymousEnum() qt.shiboken: CLANG builtins includes directory: /usr/lib64/clang/16/include
      [  294s] QDEBUG : TestEnum::testAnonymousEnum() clang_parseTranslationUnit2(0x0, cmd[10]=-isystem/usr/lib64/clang/16/include -isystem/usr/include/c++/13 -isystem/usr/include/c++/13/x86_64-suse-linux -isystem/usr/include/c++/13/backward -fPIC -Wno-constant-logical-operand -x c++ -std=c++17 /tmp/st_IsYfWH_main.cpp)
      [  294s]    [30ms] Generating class model (1)...                               QWARN  : TestEnum::testAnonymousEnum() qt.shiboken: /tmp/st_IsYfWH_main.cpp:3:	Enum 'A::(unnamed enum at /tmp/st_IsYfWH_main.cpp:3:9)' (class: A) does not have a type entry
      [  294s] QWARN  : TestEnum::testAnonymousEnum() qt.shiboken: /tmp/st_IsYfWH_main.cpp:4:	Enum 'A::(unnamed enum at /tmp/st_IsYfWH_main.cpp:4:9)' (class: A) does not have a type entry
      [  294s] [OK]
      [  294s]    [30ms] Generating enum model (1)...                                QWARN  : TestEnum::testAnonymousEnum() qt.shiboken: /tmp/st_IsYfWH_main.cpp:1:	Enum '(unnamed enum at /tmp/st_IsYfWH_main.cpp:1:5)' does not have a type entry
      [  294s] [OK]
      [  294s]    [30ms] Generating namespace model (0)...                           [OK]
      [  294s]    [30ms] Resolving typedefs (0)...                                   [OK]
      [  294s]    [30ms] Fixing class inheritance...                                 [OK]
      [  294s]    [30ms] Detecting inconsistencies in class model...                 [OK]
      [  294s]    [30ms] Detecting inconsistencies in typesystem (65)...             QWARN  : TestEnum::testAnonymousEnum() qt.shiboken: enum 'A::A1' is specified in typesystem, but not declared.
      [  294s] QWARN  : TestEnum::testAnonymousEnum() qt.shiboken: enum 'A::isThis' is specified in typesystem, but not declared.
      [  294s] QWARN  : TestEnum::testAnonymousEnum() qt.shiboken: enum 'Global0' is specified in typesystem, but not declared.
      [  294s] [OK]
      [  294s]    [30ms] Checking inconsistencies in function modifications...       [OK]
      [  294s]    [30ms] Writing log files...                                        [OK]
      [  294s] FAIL!  : TestEnum::testAnonymousEnum() Compared values are not the same
      [  294s]    Actual   (globalEnums.size()): 0
      [  294s]    Expected (1)                 : 1
      [  294s]    Loc: [/home/abuild/rpmbuild/BUILD/pyside-setup-everywhere-src-6.5/sources/shiboken6/ApiExtractor/tests/testenum.cpp(125)]
      
      [...]
      
      

       

      sample_enum:

      [  297s]  82/188 Test  #82: sample_enum ........................................................***Failed    0.44 sec
      [  297s] ..EE........ss....ss.
      [  297s] ======================================================================
      [  297s] ERROR: testAnonymousClassEnums (__main__.EnumTest)
      [  297s] Checks availability of anonymous class enum items.
      [  297s] ----------------------------------------------------------------------
      [  297s] Traceback (most recent call last):
      [  297s]   File "/home/abuild/rpmbuild/BUILD/pyside-setup-everywhere-src-6.5/sources/shiboken6/tests/samplebinding/enum_test.py", line 92, in testAnonymousClassEnums
      [  297s]     self.assertEqual(SampleNamespace.AnonymousClassEnum_Value0, 0)
      [  297s] AttributeError: type object 'sample.SampleNamespace' has no attribute 'AnonymousClassEnum_Value0'
      [  297s] 
      [  297s] ======================================================================
      [  297s] ERROR: testAnonymousGlobalEnums (__main__.EnumTest)
      [  297s] Checks availability of anonymous global enum items.
      [  297s] ----------------------------------------------------------------------
      [  297s] Traceback (most recent call last):
      [  297s]   File "/home/abuild/rpmbuild/BUILD/pyside-setup-everywhere-src-6.5/sources/shiboken6/tests/samplebinding/enum_test.py", line 87, in testAnonymousGlobalEnums
      [  297s]     self.assertEqual(sample.AnonymousGlobalEnum_Value0, 0)
      [  297s] AttributeError: module 'sample' has no attribute 'AnonymousGlobalEnum_Value0'
      [  297s] 
      [  297s] ----------------------------------------------------------------------
      [  297s] Ran 21 tests in 0.047s
      [  297s] 
      [  297s] FAILED (errors=2, skipped=4) 

       

      sample_enumfromremovednamespace:

      [  297s]  84/188 Test  #83: sample_enumfromremovednamespace ....................................***Failed    0.44 sec
      [  297s] sE...
      [  297s] ======================================================================
      [  297s] ERROR: testEnumPromotedToUpperNamespace (__main__.TestEnumFromRemovedNamespace)
      [  297s] ----------------------------------------------------------------------
      [  297s] Traceback (most recent call last):
      [  297s]   File "/home/abuild/rpmbuild/BUILD/pyside-setup-everywhere-src-6.5/sources/shiboken6/tests/samplebinding/enumfromremovednamespace_test.py", line 55, in testEnumPromotedToUpperNamespace
      [  297s]     sample.UnremovedNamespace.RemovedNamespace3_AnonymousEnum_Value0
      [  297s] AttributeError: type object 'sample.UnremovedNamespace' has no attribute 'RemovedNamespace3_AnonymousEnum_Value0'
      [  297s] 
      [  297s] ----------------------------------------------------------------------
      [  297s] Ran 5 tests in 0.037s
      [  297s] 
      [  297s] FAILED (errors=1, skipped=1) 

       

      sample_pen:

      [  300s] 144/188 Test #143: sample_pen .........................................................***Failed    0.40 sec
      [  300s] .EEEEE
      [  300s] ======================================================================
      [  300s] ERROR: testPenWithColorConstructor (__main__.TestPen)
      [  300s] ----------------------------------------------------------------------
      [  300s] Traceback (most recent call last):
      [  300s]   File "/home/abuild/rpmbuild/BUILD/pyside-setup-everywhere-src-6.5/sources/shiboken6/tests/samplebinding/pen_test.py", line 31, in testPenWithColorConstructor
      [  300s]     self.assertEqual(pen.ctorType(), Pen.ColorCtor)
      [  300s] AttributeError: type object 'sample.Pen' has no attribute 'ColorCtor'
      [  300s] 
      [  300s] ======================================================================
      [  300s] ERROR: testPenWithCopyConstructor (__main__.TestPen)
      [  300s] ----------------------------------------------------------------------
      [  300s] Traceback (most recent call last):
      [  300s]   File "/home/abuild/rpmbuild/BUILD/pyside-setup-everywhere-src-6.5/sources/shiboken6/tests/samplebinding/pen_test.py", line 35, in testPenWithCopyConstructor
      [  300s]     self.assertEqual(pen.ctorType(), Pen.CopyCtor)
      [  300s] AttributeError: type object 'sample.Pen' has no attribute 'CopyCtor'
      [  300s] 
      [  300s] ======================================================================
      [  300s] ERROR: testPenWithEmptyConstructor (__main__.TestPen)
      [  300s] ----------------------------------------------------------------------
      [  300s] Traceback (most recent call last):
      [  300s]   File "/home/abuild/rpmbuild/BUILD/pyside-setup-everywhere-src-6.5/sources/shiboken6/tests/samplebinding/pen_test.py", line 23, in testPenWithEmptyConstructor
      [  300s]     self.assertEqual(pen.ctorType(), Pen.EmptyCtor)
      [  300s] AttributeError: type object 'sample.Pen' has no attribute 'EmptyCtor'
      [  300s] 
      [  300s] ======================================================================
      [  300s] ERROR: testPenWithEnumConstructor (__main__.TestPen)
      [  300s] ----------------------------------------------------------------------
      [  300s] Traceback (most recent call last):
      [  300s]   File "/home/abuild/rpmbuild/BUILD/pyside-setup-everywhere-src-6.5/sources/shiboken6/tests/samplebinding/pen_test.py", line 27, in testPenWithEnumConstructor
      [  300s]     self.assertEqual(pen.ctorType(), Pen.EnumCtor)
      [  300s] AttributeError: type object 'sample.Pen' has no attribute 'EnumCtor'
      [  300s] 
      [  300s] ======================================================================
      [  300s] ERROR: testPenWithIntConvertedToColor (__main__.TestPen)
      [  300s] ----------------------------------------------------------------------
      [  300s] Traceback (most recent call last):
      [  300s]   File "/home/abuild/rpmbuild/BUILD/pyside-setup-everywhere-src-6.5/sources/shiboken6/tests/samplebinding/pen_test.py", line 39, in testPenWithIntConvertedToColor
      [  300s]     self.assertEqual(pen.ctorType(), Pen.ColorCtor)
      [  300s] AttributeError: type object 'sample.Pen' has no attribute 'ColorCtor'
      [  300s] 
      [  300s] ----------------------------------------------------------------------
      [  300s] Ran 6 tests in 0.002s
      [  300s] 
      [  300s] FAILED (errors=5) 

       

       

       

       

       

       

      Attachments

        Activity

          People

            kleint Friedemann Kleint
            cgiboudeaux Christophe Marin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: