Tests: Teach RunCMake.SymlinkTrees to tolerate CCACHE_BASEDIR

If the test is driven with a `ccache`-wrapped compiler then
the `CCACHE_BASEDIR` environment variable might break paths
the test checks.

Fixes: #23885
This commit is contained in:
Brad King
2022-08-30 16:38:31 -04:00
parent 9b4efcb92f
commit d3ac4e8246
@@ -1,5 +1,8 @@
include(RunCMake)
# Do not let ccache modify paths checked by the test cases.
unset(ENV{CCACHE_BASEDIR})
function(run_symlink_test_case)
file(REMOVE_RECURSE
"${RunCMake_TEST_BINARY_DIR}/CMakeCache.txt"