Skip to content

Commit db481ba

Browse files
committed
BUG: Disable ConvertImageWithLabelsToShapeLabelMapTest on Windows
Tracked in: #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.
1 parent 84fb315 commit db481ba

File tree

1 file changed

+7
-4
lines changed
  • src/Filtering/LabelMap/ConvertImageWithLabelsToShapeLabelMap

1 file changed

+7
-4
lines changed

src/Filtering/LabelMap/ConvertImageWithLabelsToShapeLabelMap/CMakeLists.txt

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,10 @@ install(FILES Code.cxx CMakeLists.txt
2121

2222

2323
enable_testing()
24-
add_test(NAME ConvertImageWithLabelsToShapeLabelMapTest
25-
COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
26-
set_tests_properties(ConvertImageWithLabelsToShapeLabelMapTest
27-
PROPERTIES PASS_REGULAR_EXPRESSION "There are 2 objects.")
24+
# Windows failures tracked: https://github.com/InsightSoftwareConsortium/ITKSphinxExamples/issues/420
25+
if (NOT WIN32)
26+
add_test(NAME ConvertImageWithLabelsToShapeLabelMapTest
27+
COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME})
28+
set_tests_properties(ConvertImageWithLabelsToShapeLabelMapTest
29+
PROPERTIES PASS_REGULAR_EXPRESSION "There are 2 objects.")
30+
endif()

0 commit comments

Comments
 (0)