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.
This commit is contained in:
Alex Reinking
2022-08-14 02:08:09 -04:00
committed by Brad King
parent 4e6cbb1f13
commit a0b1c4ee90

View File

@@ -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,