summaryrefslogtreecommitdiffstats
path: root/Source/cmCTest.cxx
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2006-03-28 20:20:21 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2006-03-28 20:20:21 (GMT)
commitcca91e168a5525e6b5be0bb05de6796a887060a7 (patch)
tree26adc48cdb5bd6350a060c714ca5bc3bb5b294a7 /Source/cmCTest.cxx
parentfb9eedc18754da4807c27ccdfcab11975f091384 (diff)
downloadCMake-cca91e168a5525e6b5be0bb05de6796a887060a7.zip
CMake-cca91e168a5525e6b5be0bb05de6796a887060a7.tar.gz
CMake-cca91e168a5525e6b5be0bb05de6796a887060a7.tar.bz2
ENH: Pass handler flags to both test and memcheck handler
Diffstat (limited to 'Source/cmCTest.cxx')
-rw-r--r--Source/cmCTest.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/cmCTest.cxx b/Source/cmCTest.cxx
index cca171e..e077984 100644
--- a/Source/cmCTest.cxx
+++ b/Source/cmCTest.cxx
@@ -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)