Skip to content

Commit

Permalink
BUG: Disable ConvertImageWithLabelsToShapeLabelMapTest on Windows
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
thewtex committed Oct 30, 2023
1 parent 84fb315 commit db481ba
Showing 1 changed file with 7 additions and 4 deletions.
Expand Up @@ -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()

0 comments on commit db481ba

Please sign in to comment.