summaryrefslogtreecommitdiffstats
path: root/Source/CTest
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2006-11-10 15:12:56 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2006-11-10 15:12:56 (GMT)
commitc8c3bd7acd88455772f0301062856e0d9622db31 (patch)
treefdec66913bf2cccfe2ad889798cd337fb1b35ab7 /Source/CTest
parentda21bc79bb50059a658c9f7304852b5a307e92a1 (diff)
downloadCMake-c8c3bd7acd88455772f0301062856e0d9622db31.zip
CMake-c8c3bd7acd88455772f0301062856e0d9622db31.tar.gz
CMake-c8c3bd7acd88455772f0301062856e0d9622db31.tar.bz2
ENH: merge from main tree fix for vs all build qt and mpi2
Diffstat (limited to 'Source/CTest')
-rw-r--r--Source/CTest/cmCTestBuildHandler.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/CTest/cmCTestBuildHandler.cxx b/Source/CTest/cmCTestBuildHandler.cxx
index 9bbb4a2..8b960f5 100644
--- a/Source/CTest/cmCTestBuildHandler.cxx
+++ b/Source/CTest/cmCTestBuildHandler.cxx
@@ -833,7 +833,8 @@ void cmCTestBuildHandler::ProcessBuffer(const char* data, int length,
{
// This is not an error or warning.
// So, figure out if this is a post-context line
- if ( this->LastErrorOrWarning != this->ErrorsAndWarnings.end() &&
+ if ( this->ErrorsAndWarnings.size() &&
+ this->LastErrorOrWarning != this->ErrorsAndWarnings.end() &&
this->PostContextCount < this->MaxPostContext )
{
this->PostContextCount ++;