Skip to content

Commit e40b7ad

Browse files
committed
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_<name> 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.
1 parent 8d5cba9 commit e40b7ad

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ itk_add_test(NAME itkGradientMagnitudeSigmoidFeatureGeneratorTest1
161161
90.0
162162
)
163163

164-
itk_add_test(NAME itkGradientMagnitudeImageFilterTest1
164+
itk_add_test(NAME LesionSizingToolkitGradientMagnitudeImageFilterTest1
165165
COMMAND ${ITK_TEST_DRIVER}
166166
$<TARGET_FILE:itkGradientMagnitudeImageFilter>
167167
${TEST_DATA_ROOT}/Input/PartSolidLesionCropped.mha
@@ -216,7 +216,7 @@ itk_add_test(NAME itkCannyEdgeDetectionImageFilterTest1
216216
${TEMP}/CannyEdgeDetectionNonMaximumSuppressionImageFilterTest1_1.mha
217217
)
218218

219-
itk_add_test(NAME itkCannyEdgeDetectionImageFilterTest2
219+
itk_add_test(NAME LesionSizingToolkitCannyEdgeDetectionImageFilterTest2
220220
COMMAND ${ITK_TEST_DRIVER}
221221
--compare ${TEMP}/CannyEdgeDetectionImageFilterTest2_1.mha
222222
${TEST_DATA_ROOT}/Baseline/CannyEdgeDetectionImageFilterTest2_1.mha

0 commit comments

Comments
 (0)