MantisBT - CMake
View Issue Details
0015983CMakeCMakepublic2016-02-21 12:402016-06-10 14:31
Gregor Jasny 
Kitware Robot 
normalminoralways
closedmoved 
MacOSX10.1110.11.3
CMake 3.5 
 
0015983: Qt4Targets test fails to run twice in a row
When building CMake with the Xcode generator the Qt4Targets target test fails to run twice in a row. Once I purge the build directory and re-create it the first run succeeds again.
1. create separate cmake build directory and select the Xcode generator.
2. run "ctest -C Debug -R Qt4Targets --verbose" twice.
ctest -C Debug -R Qt4Targets --verbose
UpdateCTestConfiguration  from :/Users/jasny/src/cmake/_build_xcode/DartConfiguration.tcl
Parse Config file:/Users/jasny/src/cmake/_build_xcode/DartConfiguration.tcl
 Add coverage exclude regular expressions.
 Add coverage exclude: Kdevelop
 Add coverage exclude: /Source/(cm|kw)sys/
 Add coverage exclude: /CMakeFiles/CMakeTmp/
 Add coverage exclude: [A-Za-z]./[Qq]t/qt-.+-opensource-src
SetCTestConfiguration:CMakeCommand:/usr/local/Cellar/cmake/3.4.1/bin/cmake
UpdateCTestConfiguration  from :/Users/jasny/src/cmake/_build_xcode/DartConfiguration.tcl
Parse Config file:/Users/jasny/src/cmake/_build_xcode/DartConfiguration.tcl
Test project /Users/jasny/src/cmake/_build_xcode
Constructing a list of tests
Done constructing a list of tests
Checking test dependency graph...
Checking test dependency graph end
test 140
    Start 140: Qt4Targets

140: Test command: /Users/jasny/src/cmake/_build_xcode/bin/Debug/ctest "--build-and-test" "/Users/jasny/src/cmake/Tests/Qt4Targets" 
"/Users/jasny/src/cmake/_build_xcode/Tests/Qt4Targets" "--build-generator" "Xcode" 
"--build-project" "Qt4Targets" "--build-exe-dir" "/Users/jasny/src/cmake/_build_xcode/Tests/Qt4Targets" 
"--force-new-ctest-process" "--build-options" "-DQT_QMAKE_EXECUTABLE:FILEPATH=/usr/local/bin/qmake" 
"--test-command" "/Users/jasny/src/cmake/_build_xcode/bin/ctest" "-V"

140: Test timeout computed to be: 1500
140: Internal cmake changing into directory: /Users/jasny/src/cmake/_build_xcode/Tests/Qt4Targets
140: Error: cmake execution failed
140: CMake Error at CMakeLists.txt:75 (message):
140:   Rebuild did not re-create moc file with -DADD_TARGET_DEF.  Before:
140:   2016038200331.  After: 2016038200331
140: Call Stack (most recent call first):
140:   CMakeLists.txt:79 (test_incremental)
140: 
140: 
140: Configuring
140: Configuring incomplete, errors occurred!
140: See also "/Users/jasny/src/cmake/_build_xcode/Tests/Qt4Targets/CMakeFiles/CMakeOutput.log".

140: See also "/Users/jasny/src/cmake/_build_xcode/Tests/Qt4Targets/CMakeFiles/CMakeError.log".

140: 
1/1 Test #140: Qt4Targets .......................***Failed    9.91 sec

0% tests passed, 1 tests failed out of 1

Total Test time (real) =   9.97 sec

The following tests FAILED:
    140 - Qt4Targets (Failed)
Errors while running CTest
No tags attached.
Issue History
2016-02-21 12:40Gregor JasnyNew Issue
2016-06-10 14:29Kitware RobotNote Added: 0042943
2016-06-10 14:29Kitware RobotStatusnew => resolved
2016-06-10 14:29Kitware RobotResolutionopen => moved
2016-06-10 14:29Kitware RobotAssigned To => Kitware Robot
2016-06-10 14:31Kitware RobotStatusresolved => closed

Notes
(0042943)
Kitware Robot   
2016-06-10 14:29   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.