mirror of
https://github.com/reactos/CMake.git
synced 2024-12-12 13:56:00 +00:00
ENH: Pass handler flags to both test and memcheck handler
This commit is contained in:
parent
fb9eedc187
commit
cca91e168a
@ -1651,16 +1651,21 @@ int cmCTest::Run(std::vector<std::string>const& args, std::string* output)
|
||||
i++;
|
||||
this->GetHandler("test")->SetOption("TestsToRunInformation",
|
||||
args[i].c_str());
|
||||
this->GetHandler("memcheck")->SetOption("TestsToRunInformation",
|
||||
args[i].c_str());
|
||||
}
|
||||
if(this->CheckArgument(arg, "-U", "--union"))
|
||||
{
|
||||
this->GetHandler("test")->SetOption("UseUnion", "true");
|
||||
this->GetHandler("memcheck")->SetOption("UseUnion", "true");
|
||||
}
|
||||
if(this->CheckArgument(arg, "-R", "--tests-regex") && i < args.size() - 1)
|
||||
{
|
||||
i++;
|
||||
this->GetHandler("test")->SetOption("IncludeRegularExpression",
|
||||
args[i].c_str());
|
||||
this->GetHandler("memcheck")->SetOption("IncludeRegularExpression",
|
||||
args[i].c_str());
|
||||
}
|
||||
|
||||
if(this->CheckArgument(arg, "-E", "--exclude-regex") &&
|
||||
@ -1669,6 +1674,8 @@ int cmCTest::Run(std::vector<std::string>const& args, std::string* output)
|
||||
i++;
|
||||
this->GetHandler("test")->SetOption("ExcludeRegularExpression",
|
||||
args[i].c_str());
|
||||
this->GetHandler("memcheck")->SetOption("ExcludeRegularExpression",
|
||||
args[i].c_str());
|
||||
}
|
||||
|
||||
if(this->CheckArgument(arg, "--overwrite") && i < args.size() - 1)
|
||||
|
Loading…
Reference in New Issue
Block a user