summaryrefslogtreecommitdiff
path: root/Source/CTest
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2007-07-25 16:37:50 -0400
committerBill Hoffman <bill.hoffman@kitware.com>2007-07-25 16:37:50 -0400
commitca31d33151e6a3e1aca7715808e3afa1a39449da (patch)
tree9e15a9de645b1e10a2f891f53626945823d4dd83 /Source/CTest
parent7e9eed0230cf2ba8b86bcf76e1c78bb23fa8b82e (diff)
downloadcmake-ca31d33151e6a3e1aca7715808e3afa1a39449da.tar.gz
ENH: fix bug with valgrind output being truncated
Diffstat (limited to 'Source/CTest')
-rw-r--r--Source/CTest/cmCTestTestHandler.cxx21
1 files changed, 13 insertions, 8 deletions
diff --git a/Source/CTest/cmCTestTestHandler.cxx b/Source/CTest/cmCTestTestHandler.cxx
index e33d62bc45..8026c5ab0a 100644
--- a/Source/CTest/cmCTestTestHandler.cxx
+++ b/Source/CTest/cmCTestTestHandler.cxx
@@ -784,15 +784,20 @@ void cmCTestTestHandler::ProcessOneTest(cmCTestTestProperties *it,
}
}
- if ( cres.Status == cmCTestTestHandler::COMPLETED )
+ // if this is doing MemCheck then all the output needs to be put into
+ // Output since that it what is parsed to by cmCTestMemCheckHandler
+ if(!this->MemCheck)
{
- this->CleanTestOutput(output, static_cast<size_t>
- (this->CustomMaximumPassedTestOutputSize));
- }
- else
- {
- this->CleanTestOutput(output, static_cast<size_t>
- (this->CustomMaximumFailedTestOutputSize));
+ if ( cres.Status == cmCTestTestHandler::COMPLETED )
+ {
+ this->CleanTestOutput(output, static_cast<size_t>
+ (this->CustomMaximumPassedTestOutputSize));
+ }
+ else
+ {
+ this->CleanTestOutput(output, static_cast<size_t>
+ (this->CustomMaximumFailedTestOutputSize));
+ }
}
cres.Output = output;