Import 2017-06-07 23:51:09: master f8450373

Author Committer Branch Timestamp Parent
jcfr jcfr master 2015-11-19 21:59:35 master f5dde09c
Changeset

ENH: Added output checking to module CXX tests

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>

From: Andras Lasso <lasso@queensu.ca>

git-svn-id: http://svn.slicer.org/Slicer4/trunk@24757 3bd1e089-480b-0410-8dfb-8563597acbee

mod - CMake/SlicerMacroConfigureModuleCxxTestDriver.cmake Diff File
mod - Extensions/Testing/LoadableExtensionTemplate/LoadableModuleTemplate/Testing/Cxx/CMakeLists.txt Diff File
mod - Extensions/Testing/SuperBuildExtensionTemplate/SuperLoadableModuleTemplate/Testing/Cxx/CMakeLists.txt Diff File
mod - Libs/MRML/Core/vtkMRMLCoreTestingMacros.h Diff File
mod - Modules/Loadable/Annotations/Testing/Cxx/CMakeLists.txt Diff File
mod - Modules/Loadable/Annotations/Testing/Cxx/vtkMRMLAnnotationDisplayableManagerTest2.cxx Diff File
mod - Modules/Loadable/Annotations/Testing/Cxx/vtkSlicerAnnotationModuleLogicImportSceneTest.cxx Diff File
mod - Modules/Loadable/Annotations/Testing/Cxx/vtkSlicerAnnotationModuleLogicTest1.cxx Diff File
mod - Modules/Loadable/Cameras/Testing/Cxx/CMakeLists.txt Diff File
mod - Modules/Loadable/Colors/Logic/Testing/Cxx/CMakeLists.txt Diff File
mod - Modules/Loadable/Colors/Testing/Cxx/CMakeLists.txt Diff File
mod - Modules/Loadable/CropVolume/Testing/CMakeLists.txt Diff File
mod - Modules/Loadable/Data/Testing/Cxx/CMakeLists.txt Diff File
mod - Modules/Loadable/DoubleArrays/Testing/Cxx/CMakeLists.txt Diff File
mod - Modules/Loadable/DoubleArrays/Testing/Cxx/vtkSlicerDoubleArraysLogicAddFileTest.cxx Diff File
mod - Modules/Loadable/Markups/Logic/vtkSlicerMarkupsLogic.cxx Diff File
mod - Modules/Loadable/Markups/Testing/Cxx/CMakeLists.txt Diff File
mod - Modules/Loadable/Markups/Testing/Cxx/vtkMRMLMarkupsFiducialStorageNodeTest1.cxx Diff File
mod - Modules/Loadable/Markups/Testing/Cxx/vtkMRMLMarkupsFiducialStorageNodeTest2.cxx Diff File
mod - Modules/Loadable/Markups/Testing/Cxx/vtkMRMLMarkupsNodeTest1.cxx Diff File
mod - Modules/Loadable/Markups/Testing/Cxx/vtkMRMLMarkupsNodeTest2.cxx Diff File
mod - Modules/Loadable/Markups/Testing/Cxx/vtkSlicerMarkupsLogicTest1.cxx Diff File
mod - Modules/Loadable/Markups/Testing/Cxx/vtkSlicerMarkupsLogicTest2.cxx Diff File
mod - Modules/Loadable/Markups/Widgets/Testing/Cxx/CMakeLists.txt Diff File
mod - Modules/Loadable/Models/Testing/Cxx/CMakeLists.txt Diff File
mod - Modules/Loadable/Models/Testing/Cxx/qSlicerModelsModuleWidgetTest.cxx Diff File
mod - Modules/Loadable/Models/Widgets/Testing/Cxx/CMakeLists.txt Diff File
mod - Modules/Loadable/SceneViews/Testing/Cxx/CMakeLists.txt Diff File
mod - Modules/Loadable/SceneViews/Testing/Cxx/vtkSlicerSceneViewsModuleLogicTest1.cxx Diff File
mod - Modules/Loadable/SubjectHierarchy/Testing/Cxx/CMakeLists.txt Diff File
mod - Modules/Loadable/TractographyDisplay/Testing/Cxx/CMakeLists.txt Diff File
mod - Modules/Loadable/TractographyInteractiveSeeding/Testing/CMakeLists.txt Diff File
mod - Modules/Loadable/Transforms/Testing/Cxx/CMakeLists.txt Diff File
mod - Modules/Loadable/Units/Testing/Cxx/CMakeLists.txt Diff File
mod - Modules/Loadable/VolumeRendering/Logic/Testing/Cxx/CMakeLists.txt Diff File
mod - Modules/Loadable/VolumeRendering/Logic/Testing/Cxx/vtkSlicerVolumeRenderingLogicAddFromFileTest.cxx Diff File
mod - Modules/Loadable/VolumeRendering/Testing/Cxx/CMakeLists.txt Diff File
mod - Modules/Loadable/Volumes/Testing/Cxx/CMakeLists.txt Diff File
mod - Modules/Loadable/Volumes/Widgets/Testing/Cxx/CMakeLists.txt Diff File
mod - Utilities/Templates/Modules/Loadable/Testing/Cxx/CMakeLists.txt Diff File