[cmake-developers] CMake 3.4.0-rc2 ctest hangs with 100% CPU

Nils Gladitz nilsgladitz at gmail.com
Fri Oct 23 03:23:47 EDT 2015


On 10/23/2015 09:10 AM, Nils Gladitz wrote:
> I switched from 3.2.1 to 3.4.0-rc2 on a Windows and a Linux dashboard 
> client for a custom project.
>
> On the Linux client parallel testing now loops with 100% CPU somewhere 
> in cmCTestMultiProcessHandler::StartNextTests and 
> cmCTestMultiProcessHandler::CheckOutput.
>

I reduced it to this test case:

   cmake_minimum_required(VERSION 3.4)

   project(Foo NONE)

   enable_testing()

   add_test(NAME foo COMMAND command_not_found)
   set_property(TEST foo PROPERTY RUN_SERIAL ON)

   add_test(NAME bar COMMAND ${CMAKE_COMMAND} -E echo let_me_run)

The issue seems to exist for sequential ctest runs as well.

The breaking commit seems to be:
     07c550caa20d4b1d6ebc08269d744ff6a45c0a6d 
cmCTestMultiProcessHandler: Refactor RUN_SERIAL implementation

Nils


More information about the cmake-developers mailing list