Skip to content

GoogleTest: Add timeout to discovery

Add a TIMEOUT option to gtest_discover_tests. This provides a work-around in case a test goes out to lunch, rather than causing the build to simply hang. (Although this is still a problem with the user's project, hanging the build is not cool, especially in the case of automatically running CI builds. It is much preferred that the build should actively fail in this case, and it is trivially easy for us to implement that.)

See https://github.com/Kitware/kwiver/issues/407 for the issue that motivated this work-around.

Also (because the timeout test made it really easy) add a test to verify expected behavior when a test executable on which gtest_discover_tests is invoked was not built.

Merge request reports