mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-09 08:40:11 -06:00
When processing the reset operation in the context of a CTest `ENVIRONMENT_MODIFICATION` property, the value the variable is reset to is the one it had after `ENVIRONMENT` was processed, not before. This was broken once during refactoring and is subtle enough that it should be tested.
17 lines
514 B
CMake
17 lines
514 B
CMake
include(RunCTest)
|
|
|
|
# Isolate our ctest runs from external environment.
|
|
unset(ENV{CTEST_PARALLEL_LEVEL})
|
|
unset(ENV{CTEST_OUTPUT_ON_FAILURE})
|
|
|
|
set(CASE_SOURCE_DIR "${RunCMake_SOURCE_DIR}")
|
|
set(RunCTest_VERBOSE_FLAG "-VV")
|
|
|
|
run_ctest(ENVIRONMENT_MODIFICATION-invalid-op)
|
|
run_ctest(ENVIRONMENT_MODIFICATION-no-colon)
|
|
run_ctest(ENVIRONMENT_MODIFICATION-no-equals)
|
|
|
|
set(ENV{CTEST_TEST_VAR} set-via-system-environment)
|
|
run_ctest(ENVIRONMENT_MODIFICATION-reset-to-prop)
|
|
run_ctest(ENVIRONMENT_MODIFICATION-reset-to-system)
|