[cmake-developers] ctest-fix-run-serial topic regressions

Nils Gladitz nilsgladitz at gmail.com
Fri Dec 20 16:54:03 EST 2013


On 12/20/2013 07:28 PM, Brad King wrote:
> The second one is a new bug that is responsible for some of the
> missing dashboard submissions recently.  Somehow CTest stops
> running tests and loops forever if there are problems running
> some tests.  It can be reproduced on Linux in a CMake build
> tree as follows:

Thank you Brad,
I am looking into it.

I haven't figured it all out yet but it looks like CTest is currently 
waiting for dependencies to finish which have never (and will never) run 
because their executable is missing.
It does not happen when the dependency has a regular test failure

I've come up with this testcase which I'll include with the fix (as soon 
as I have one) which reproduces this:
     cmake_minimum_required(VERSION 2.8.12)

     enable_testing()

     add_test(test1 ${CMAKE_COMMAND} -E echo test)
     add_test(test2 non-existent-command)
     set_tests_properties(test1 PROPERTIES DEPENDS test2)

Nils



More information about the cmake-developers mailing list