From cca91e168a5525e6b5be0bb05de6796a887060a7 Mon Sep 17 00:00:00 2001 From: Andy Cedilnik Date: Tue, 28 Mar 2006 15:20:21 -0500 Subject: [PATCH] ENH: Pass handler flags to both test and memcheck handler --- Source/cmCTest.cxx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Source/cmCTest.cxx b/Source/cmCTest.cxx index cca171ec26..e0779841f7 100644 --- a/Source/cmCTest.cxx +++ b/Source/cmCTest.cxx @@ -1651,16 +1651,21 @@ int cmCTest::Run(std::vectorconst& 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::vectorconst& 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)