From db481ba1da52b3b2309f4b2fce8c46851684c9a6 Mon Sep 17 00:00:00 2001 From: Matt McCormick Date: Mon, 30 Oct 2023 16:14:59 -0400 Subject: [PATCH] BUG: Disable ConvertImageWithLabelsToShapeLabelMapTest on Windows Tracked in: https://github.com/InsightSoftwareConsortium/ITKSphinxExamples/issues/420 Checking various versions from ITK 4.13 to ITK 5.3, this was producing the wrong output (a much larger object count) on Windows. In ITK 5.4 RC 2, the test will occasionally crash. --- .../CMakeLists.txt | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/Filtering/LabelMap/ConvertImageWithLabelsToShapeLabelMap/CMakeLists.txt b/src/Filtering/LabelMap/ConvertImageWithLabelsToShapeLabelMap/CMakeLists.txt index 907bbcfa6..500a4fefc 100644 --- a/src/Filtering/LabelMap/ConvertImageWithLabelsToShapeLabelMap/CMakeLists.txt +++ b/src/Filtering/LabelMap/ConvertImageWithLabelsToShapeLabelMap/CMakeLists.txt @@ -21,7 +21,10 @@ install(FILES Code.cxx CMakeLists.txt enable_testing() -add_test(NAME ConvertImageWithLabelsToShapeLabelMapTest - COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}) -set_tests_properties(ConvertImageWithLabelsToShapeLabelMapTest - PROPERTIES PASS_REGULAR_EXPRESSION "There are 2 objects.") +# Windows failures tracked: https://github.com/InsightSoftwareConsortium/ITKSphinxExamples/issues/420 +if (NOT WIN32) + add_test(NAME ConvertImageWithLabelsToShapeLabelMapTest + COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}) + set_tests_properties(ConvertImageWithLabelsToShapeLabelMapTest + PROPERTIES PASS_REGULAR_EXPRESSION "There are 2 objects.") +endif()