summaryrefslogtreecommitdiffstats
path: root/Source/CTest
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2006-11-09 21:07:38 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2006-11-09 21:07:38 (GMT)
commit9442cd33ba871fcb2f682e5166d5488e1785104d (patch)
tree77d8fb762a030d02e87d400a30e2e7b4b1cfc362 /Source/CTest
parentb0bc59f70988d169dd0c00ccecc19e42548fcd9f (diff)
downloadCMake-9442cd33ba871fcb2f682e5166d5488e1785104d.zip
CMake-9442cd33ba871fcb2f682e5166d5488e1785104d.tar.gz
CMake-9442cd33ba871fcb2f682e5166d5488e1785104d.tar.bz2
ENH: fix it to work with stl debug mode on mac
Diffstat (limited to 'Source/CTest')
-rw-r--r--Source/CTest/cmCTestBuildHandler.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/CTest/cmCTestBuildHandler.cxx b/Source/CTest/cmCTestBuildHandler.cxx
index e0d7c84..61bd6fa 100644
--- a/Source/CTest/cmCTestBuildHandler.cxx
+++ b/Source/CTest/cmCTestBuildHandler.cxx
@@ -833,8 +833,9 @@ 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() &&
- this->PostContextCount < this->MaxPostContext )
+ if ( this->ErrorsAndWarnings.size() &&
+ this->LastErrorOrWarning != this->ErrorsAndWarnings.end() &&
+ this->PostContextCount < this->MaxPostContext )
{
this->PostContextCount ++;
this->LastErrorOrWarning->PostContext += line;