I'd like to use CTestCustom.cmake to start a background job when tests start, and kill it when tests finish. Works great on Mac and Linux, but for some reason, on Windows ctest wants to wait for the background job to finish before starting the tests.
If I create CTestCustom.cmake containing set(CTEST_CUSTOM_PRE_TEST C:/foo/startjob.bat) and c:/foo/startjob.bat contains start /b myjob.exe echo Job started. the job does start, and the echo occurs, but no tests are started unless I kill myjob.exe :-( Looking at the cmake source, and using Process Monitor, I can't quite tell where ctest is waiting for myjob.exe to finish. If I were a real man, I'd build ctest myself and run it under a debugger, I guess. I worked around this by writing a tiny C program that calls CreateProcess with background-y flags and doesn't wait for the process to end, but it'd be nice if that wasn't needed. -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/cmake
