summaryrefslogtreecommitdiffstats
path: root/Source/CTest
diff options
context:
space:
mode:
authorAlex Reinking <alex.reinking@gmail.com>2022-08-14 06:08:09 (GMT)
committerBrad King <brad.king@kitware.com>2022-08-15 18:11:20 (GMT)
commita0b1c4ee907ee135fdb5727084fc90a07f525470 (patch)
tree4d0ab13f51b5ef0d55d9cebf5e7202946e26e85a /Source/CTest
parent4e6cbb1f132540cb1a283d99aad8c1890f06145d (diff)
downloadCMake-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.cxx6
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,