diff options
author | Brad King <brad.king@kitware.com> | 2022-11-14 16:05:56 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2022-11-14 16:05:56 (GMT) |
commit | 3b6c1c1a3b8c32738ac351b8cd5c137f65e14c40 (patch) | |
tree | 8decf793c42724dda87424f75f7c17039f32e2d0 /Tests/RunCMake/ctest_fixtures | |
parent | 7a4673965fbea65a22456a039145c489831fea8f (diff) | |
download | CMake-3b6c1c1a3b8c32738ac351b8cd5c137f65e14c40.zip CMake-3b6c1c1a3b8c32738ac351b8cd5c137f65e14c40.tar.gz CMake-3b6c1c1a3b8c32738ac351b8cd5c137f65e14c40.tar.bz2 |
Tests: Factor out RunCMake ctest environment isolation
Some RunCMake tests unset some environment variables that affect ctest's
behavior before running it. Any test using the RunCTest helper needs to
do this, so do it in the helper itself.
Issue: #24153
Diffstat (limited to 'Tests/RunCMake/ctest_fixtures')
-rw-r--r-- | Tests/RunCMake/ctest_fixtures/RunCMakeTest.cmake | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/Tests/RunCMake/ctest_fixtures/RunCMakeTest.cmake b/Tests/RunCMake/ctest_fixtures/RunCMakeTest.cmake index 1754203..1c2ad89 100644 --- a/Tests/RunCMake/ctest_fixtures/RunCMakeTest.cmake +++ b/Tests/RunCMake/ctest_fixtures/RunCMakeTest.cmake @@ -1,9 +1,5 @@ include(RunCTest) -# Isolate our ctest runs from external environment. -unset(ENV{CTEST_PARALLEL_LEVEL}) -unset(ENV{CTEST_OUTPUT_ON_FAILURE}) - function(run_ctest_test CASE_NAME) set(CASE_CTEST_FIXTURES_ARGS "${ARGN}") run_ctest(${CASE_NAME}) |