From a0b1c4ee907ee135fdb5727084fc90a07f525470 Mon Sep 17 00:00:00 2001 From: Alex Reinking Date: Sun, 14 Aug 2022 02:08:09 -0400 Subject: 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. --- Source/CTest/cmCTestRunTest.cxx | 6 +----- 1 file changed, 1 insertion(+), 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> 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, -- cgit v0.12