summaryrefslogtreecommitdiffstats
path: root/Source/cmTestGenerator.cxx
diff options
context:
space:
mode:
authorMarc Chevrier <marc.chevrier@gmail.com>2023-06-09 09:44:27 (GMT)
committerBrad King <brad.king@kitware.com>2023-06-09 13:47:52 (GMT)
commit1df3287bf6a49d410b81be670218259afc3474d4 (patch)
tree4b6c622f05571f160ef681bf24b9262229ed8262 /Source/cmTestGenerator.cxx
parent5b39465ff1eaf8fa5be072cb6a52f53aa1e599a8 (diff)
downloadCMake-1df3287bf6a49d410b81be670218259afc3474d4.zip
CMake-1df3287bf6a49d410b81be670218259afc3474d4.tar.gz
CMake-1df3287bf6a49d410b81be670218259afc3474d4.tar.bz2
add_test: Restore support for empty test arguments
This was regressed by refactoring in commit e08ba229ee (CMake code rely on cmList class for CMake lists management (part. 1), 2023-04-14, v3.27.0-rc1~174^2). Fix it and add a test case. Fixes: #24986
Diffstat (limited to 'Source/cmTestGenerator.cxx')
-rw-r--r--Source/cmTestGenerator.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmTestGenerator.cxx b/Source/cmTestGenerator.cxx
index c4a2bc2..ca1226a 100644
--- a/Source/cmTestGenerator.cxx
+++ b/Source/cmTestGenerator.cxx
@@ -152,7 +152,8 @@ void cmTestGenerator::GenerateScriptForConfig(std::ostream& os,
this->EvaluateCommandLineArguments(this->Test->GetCommand(), ge, config),
// Expand arguments if COMMAND_EXPAND_LISTS is set
this->Test->GetCommandExpandLists() ? cmList::ExpandElements::Yes
- : cmList::ExpandElements::No
+ : cmList::ExpandElements::No,
+ cmList::EmptyElements::Yes
};
// Expanding lists on an empty command may have left it empty
if (argv.empty()) {