Skip to content

cmWorkingDirectory: Check success of current dir changes

The cmWorkingDirectory class was used in a number of places but there were no checks on whether changing directory was successful. This merge request adds the ability to check the result and usage sites have been updated to take appropriate action if it fails. Tests have also been added for those scenarios where checks can be implemented without undue complexity. The tests fail without the updated changes, verifying two cases that previously allowed ctest to continue a build or test when it shouldn't have.

Fixes: #17778 (closed)

Edited by Craig Scott

Merge request reports