Skip to content

ENH: Added output checking to module CXX tests

Created by: jcfr

Added a new option (WITH_VTK_ERROR_OUTPUT_CHECK) to slicerMacroConfigureModuleCxxTestDriver that enables checking of error and warning messages. If the option is enabled then the test fails if unexpected error or warning is logged.

Enabled the option for all tests that had debug leaks check option (WITH_VTK_DEBUG_LEAKS_CHECK) enabled. Fixed failing tests by fixing the test, the tested code, or (most frequently) marking expected errors/warning (using TESTING_OUTPUT_ASSERT_ERRORS_BEGIN() / TESTING_OUTPUT_ASSERT_ERRORS_END() and similar macros).

Reviewed-by: Jean-Christophe Fillion-Robin jchris.fillionr@kitware.com

Merge request reports

Loading