diff options
author | Alex Reinking <alex.reinking@gmail.com> | 2022-08-14 06:08:09 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2022-08-15 18:11:20 (GMT) |
commit | a0b1c4ee907ee135fdb5727084fc90a07f525470 (patch) | |
tree | 4d0ab13f51b5ef0d55d9cebf5e7202946e26e85a /Source/CTest | |
parent | 4e6cbb1f132540cb1a283d99aad8c1890f06145d (diff) | |
download | CMake-a0b1c4ee907ee135fdb5727084fc90a07f525470.zip CMake-a0b1c4ee907ee135fdb5727084fc90a07f525470.tar.gz CMake-a0b1c4ee907ee135fdb5727084fc90a07f525470.tar.bz2 |
cmCTestRunTest: Simplify by using GetSystemPathlistSeparator
Part of the implementation of `ENVIRONMENT_MODIFICATION` replicated the
logic in this function. Using it here de-duplicates code and will be
useful during the upcoming refactoring.
Diffstat (limited to 'Source/CTest')
-rw-r--r-- | Source/CTest/cmCTestRunTest.cxx | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/Source/CTest/cmCTestRunTest.cxx b/Source/CTest/cmCTestRunTest.cxx index e19739d..88b45df 100644 --- a/Source/CTest/cmCTestRunTest.cxx +++ b/Source/CTest/cmCTestRunTest.cxx @@ -803,11 +803,7 @@ bool cmCTestRunTest::ForkProcess( if (environment_modification && !environment_modification->empty()) { std::map<std::string, cm::optional<std::string>> env_application; -#ifdef _WIN32 - char path_sep = ';'; -#else - char path_sep = ':'; -#endif + char path_sep = cmSystemTools::GetSystemPathlistSeparator(); auto apply_diff = [&env_application](const std::string& name, |