[cmake-developers] Error handling in dashboard scripts
Brad King
brad.king at kitware.com
Tue May 29 09:48:44 EDT 2018
On 05/25/2018 04:27 PM, Kyle Edwards wrote:
> ctest_start()
> ctest_configure()
> ctest_build()
> ctest_test()
> ctest_submit()
>
> What happens if ctest_configure() fails (for example, because CMake
> failed to find a needed library)? Does the entire script stop right
> there? Or does it continue and try to execute ctest_build() anyway?
IIRC it just moves on to each command in sequence and does what that
command would normally do, letting it fail as it may given whatever
state in the build tree is left behind by earlier failures, if any.
Unless the failure is so bad that ctest_submit hasn't been told
where to submit the results it should always be reached.
-Brad
More information about the cmake-developers
mailing list