From e40b7ada88ca395fffc88a57bbd3fadd43c8b3ff Mon Sep 17 00:00:00 2001 From: "Hans J. Johnson" Date: Sat, 18 Jul 2026 15:46:44 -0500 Subject: [PATCH] COMP: Rename test names that collide with ITK core tests itkGradientMagnitudeImageFilterTest1 and itkCannyEdgeDetectionImageFilterTest2 are already registered by ITK's ImageGradient and ImageFeature modules, so a build with this remote module enabled emits AUTHOR_WARNINGs from itk_add_test and the two tests share ITK's Cleanup_ fixture, which races under ctest -j. Prefix both with the module name to make them unique. Only the ctest test name changes; the executables, arguments, and baseline files are unchanged. --- test/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 813e72f..f4f4b32 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -161,7 +161,7 @@ itk_add_test(NAME itkGradientMagnitudeSigmoidFeatureGeneratorTest1 90.0 ) -itk_add_test(NAME itkGradientMagnitudeImageFilterTest1 +itk_add_test(NAME LesionSizingToolkitGradientMagnitudeImageFilterTest1 COMMAND ${ITK_TEST_DRIVER} $ ${TEST_DATA_ROOT}/Input/PartSolidLesionCropped.mha @@ -216,7 +216,7 @@ itk_add_test(NAME itkCannyEdgeDetectionImageFilterTest1 ${TEMP}/CannyEdgeDetectionNonMaximumSuppressionImageFilterTest1_1.mha ) -itk_add_test(NAME itkCannyEdgeDetectionImageFilterTest2 +itk_add_test(NAME LesionSizingToolkitCannyEdgeDetectionImageFilterTest2 COMMAND ${ITK_TEST_DRIVER} --compare ${TEMP}/CannyEdgeDetectionImageFilterTest2_1.mha ${TEST_DATA_ROOT}/Baseline/CannyEdgeDetectionImageFilterTest2_1.mha