summaryrefslogtreecommitdiffstats
path: root/Source/CTest/cmCTestTestCommand.cxx
diff options
context:
space:
mode:
authorAdriaan de Groot <groot@kde.org>2021-03-20 05:53:14 (GMT)
committerCraig Scott <craig.scott@crascit.com>2021-03-28 01:04:05 (GMT)
commit44ad3f0b7f7e0aaf96e5cfd672d07a70e1b76410 (patch)
treea6da9b5be6095fffcb7072ae6cf040d7c54ba2e5 /Source/CTest/cmCTestTestCommand.cxx
parent61fd90b90c9dfec154aee7fb4d97574921e651d1 (diff)
downloadCMake-44ad3f0b7f7e0aaf96e5cfd672d07a70e1b76410.zip
CMake-44ad3f0b7f7e0aaf96e5cfd672d07a70e1b76410.tar.gz
CMake-44ad3f0b7f7e0aaf96e5cfd672d07a70e1b76410.tar.bz2
ctest: Support multiple -L and -LE options to mean "AND"
Fixes: #21087
Diffstat (limited to 'Source/CTest/cmCTestTestCommand.cxx')
-rw-r--r--Source/CTest/cmCTestTestCommand.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/CTest/cmCTestTestCommand.cxx b/Source/CTest/cmCTestTestCommand.cxx
index 4403733..886c263 100644
--- a/Source/CTest/cmCTestTestCommand.cxx
+++ b/Source/CTest/cmCTestTestCommand.cxx
@@ -73,11 +73,11 @@ cmCTestGenericHandler* cmCTestTestCommand::InitializeHandler()
handler->SetOption("IncludeRegularExpression", this->Include.c_str());
}
if (!this->ExcludeLabel.empty()) {
- handler->SetOption("ExcludeLabelRegularExpression",
- this->ExcludeLabel.c_str());
+ handler->AddMultiOption("ExcludeLabelRegularExpression",
+ this->ExcludeLabel);
}
if (!this->IncludeLabel.empty()) {
- handler->SetOption("LabelRegularExpression", this->IncludeLabel.c_str());
+ handler->AddMultiOption("LabelRegularExpression", this->IncludeLabel);
}
if (!this->ExcludeFixture.empty()) {
handler->SetOption("ExcludeFixtureRegularExpression",