From ccac51a5cb904e675db7306b19cf3ce946d7b4ae Mon Sep 17 00:00:00 2001 From: Andy Cedilnik Date: Fri, 7 Oct 2005 11:36:09 -0400 Subject: ENH: Add support for setting the maximum number of errors and warnings reported. This should fix Bug #2318 - The maximum number of errors to report is fixed to 50 --- Source/CTest/cmCTestBuildHandler.cxx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Source/CTest/cmCTestBuildHandler.cxx b/Source/CTest/cmCTestBuildHandler.cxx index 0d59821..a724e18 100644 --- a/Source/CTest/cmCTestBuildHandler.cxx +++ b/Source/CTest/cmCTestBuildHandler.cxx @@ -226,6 +226,12 @@ void cmCTestBuildHandler::PopulateCustomVectors(cmMakefile *mf) m_CustomWarningMatches); cmCTest::PopulateCustomVector(mf, "CTEST_CUSTOM_WARNING_EXCEPTION", m_CustomWarningExceptions); + cmCTest::PopulateCustomInteger(mf, + "CTEST_CUSTOM_MAXIMUM_NUMBER_OF_ERRORS", + m_MaxErrors); + cmCTest::PopulateCustomInteger(mf, + "CTEST_CUSTOM_MAXIMUM_NUMBER_OF_WARNINGS", + m_MaxWarnings); } //---------------------------------------------------------------------- -- cgit v0.12