diff options
author | Brad King <brad.king@kitware.com> | 2024-03-08 21:05:34 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2024-03-08 21:06:35 (GMT) |
commit | d52c66bfb3ec6bbf79fab9ef6ff4cdc9ba27a45b (patch) | |
tree | ec5273dca8b998b89757b7c52275f0e0580e7caf /Source/CTest/cmCTestTestHandler.h | |
parent | 8673264e25b4abfb3b328131d983e7668a8c5e1a (diff) | |
download | CMake-d52c66bfb3ec6bbf79fab9ef6ff4cdc9ba27a45b.zip CMake-d52c66bfb3ec6bbf79fab9ef6ff4cdc9ba27a45b.tar.gz CMake-d52c66bfb3ec6bbf79fab9ef6ff4cdc9ba27a45b.tar.bz2 |
ctest: Honor tests-from-file options with empty input
If the `--tests-from-file` input file is empty, no tests should run.
Diffstat (limited to 'Source/CTest/cmCTestTestHandler.h')
-rw-r--r-- | Source/CTest/cmCTestTestHandler.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/CTest/cmCTestTestHandler.h b/Source/CTest/cmCTestTestHandler.h index e9c964b..6932800 100644 --- a/Source/CTest/cmCTestTestHandler.h +++ b/Source/CTest/cmCTestTestHandler.h @@ -341,8 +341,8 @@ private: std::string GetTestStatus(cmCTestTestResult const&); void ExpandTestsToRunInformation(size_t numPossibleTests); void ExpandTestsToRunInformationForRerunFailed(); - bool ReadTestListFile(std::string const& testListFileName, - std::set<std::string>& testNames) const; + cm::optional<std::set<std::string>> ReadTestListFile( + std::string const& testListFileName) const; std::vector<std::string> CustomPreTest; std::vector<std::string> CustomPostTest; @@ -363,8 +363,8 @@ private: cmsys::RegularExpression ExcludeTestsRegularExpression; std::string TestListFile; std::string ExcludeTestListFile; - std::set<std::string> TestsToRunByName; - std::set<std::string> TestsToExcludeByName; + cm::optional<std::set<std::string>> TestsToRunByName; + cm::optional<std::set<std::string>> TestsToExcludeByName; std::string ResourceSpecFile; |