InsightSoftwareConsortium / ITK

Insight Toolkit (ITK) -- Official Repository. ITK builds on a proven, spatially-oriented architecture for processing, segmentation, and registration of scientific images in two, three, or more dimensions.
https://itk.org
Apache License 2.0
1.37k stars 660 forks source link

BUG: fix output path for WriteImage test #4678

Closed blowekamp closed 1 month ago

blowekamp commented 1 month ago

Addresses creation of test1.mha file in wrong place.

Fix the variable name and the preprocessor stringification.

PR Checklist

Refer to the ITK Software Guide for further development details if necessary.

blowekamp commented 1 month ago

What used to be the content of ITK_TEST_OUTPUT_DIR_STR?

It appeared to be undefined and no change directory operation occoured.

blowekamp commented 1 month ago

It seems that when the test is run through ctest the path is automatically changed to the correct TEST_DIR. However when the GTest driver is directly called it is now. The latter may be more consistent with the behavior of the other itk custom test drivers, so this extra change dir may not really be needed.