[cmake-developers] ctest -j 32 hanging

Thomas Sondergaard ts at medical-insight.com
Tue Dec 2 15:07:12 EST 2014


On 2014-12-02 15:28, Brad King wrote:
> On 12/02/2014 09:10 AM, Thomas Sondergaard wrote:
>> One of the tests spawns a dbus-daemon.exe which was leftover, once I
>> killed that ctest.exe finished too. Is this consistent with the expected
>> ctest behavior?
>
> This is a known limitation of the way CTest runs processes.  If a
> parent exits before the grandchildren, and the latter do not exit,
> then things get stuck because they keep pipes open that CTest is
> blocking on waiting to be closed.  This is only a problem on Windows.
>
> This limitation is left from the way things had to be implemented
> way back when Windows 98 was supported to work there without polling.
> The infrastructure update required to fix it is non-trivial so no one
> has taken the time to do it yet.
>
> -Brad

OK, thanks. The test is not supposed to leave processes after it exits, 
so fixing the test should avoid the problem.

Thomas



More information about the cmake-developers mailing list