[cmake-developers] Moc-test errors

Sebastian Holtermann seblist at xwmw.org
Tue Jun 4 10:05:25 EDT 2019


> Sure, rebuild_cache was the first I tried. The test-errors remain even in the master tree of today.
> Performing now on a clean build ...
> 	#ctest -R Qt5Autogen.Moc
> Test project /BUILD/BUILDMint18/BuildCmakeGit
> Guessing configuration NoConfig
>      Start 553: Qt5Autogen.MocOnly
> 1/8 Test #553: Qt5Autogen.MocOnly ...............   Passed    2.04 sec
>      Start 554: Qt5Autogen.MocOptions
> 2/8 Test #554: Qt5Autogen.MocOptions ............   Passed    1.40 sec
>      Start 576: Qt5Autogen.MocCMP0071
> 3/8 Test #576: Qt5Autogen.MocCMP0071 ............   Passed    2.48 sec
>      Start 577: Qt5Autogen.MocIncludeRelaxed
> 4/8 Test #577: Qt5Autogen.MocIncludeRelaxed .....***Failed    4.37 sec
>      Start 578: Qt5Autogen.MocIncludeStrict
> 5/8 Test #578: Qt5Autogen.MocIncludeStrict ......***Failed    4.24 sec
>      Start 579: Qt5Autogen.MocSkipSource
> 6/8 Test #579: Qt5Autogen.MocSkipSource .........***Failed    2.99 sec
>      Start 580: Qt5Autogen.MocMacroName
> 7/8 Test #580: Qt5Autogen.MocMacroName ..........   Passed    1.95 sec
>      Start 581: Qt5Autogen.MocOsMacros
> 8/8 Test #581: Qt5Autogen.MocOsMacros ...........   Passed    0.56 sec
> 
> 63% tests passed, 3 tests failed out of 8
> 
> Total Test time (real) =  20.09 sec
> 
> The following tests FAILED:
> 	577 - Qt5Autogen.MocIncludeRelaxed (Failed)
> 	578 - Qt5Autogen.MocIncludeStrict (Failed)
> 	579 - Qt5Autogen.MocSkipSource (Failed)
> Errors while running CTest
> 

Okay, it looks like SKIP_AUTOMOC doesn't work properly.
Can you please post the output of

- `ctest -R Qt5Autogen.MocSkip -VV`
- `cat 
Tests/Qt5Autogen/MocSkipSource/CMakeFiles/skipMocA_autogen.dir/AutogenInfo.cmake`
- `cat 
Tests/Qt5Autogen/MocSkipSource/CMakeFiles/skipMocB_autogen.dir/AutogenInfo.cmake`


More information about the cmake-developers mailing list