|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r57238 - trunk/tools/regression/src
From: bdawes_at_[hidden]
Date: 2009-10-29 16:27:38
Author: bemandawes
Date: 2009-10-29 16:27:37 EDT (Thu, 29 Oct 2009)
New Revision: 57238
URL: http://svn.boost.org/trac/boost/changeset/57238
Log:
compiler_status: ignore 30 DAY EVALUATION LICENSE message
Text files modified:
trunk/tools/regression/src/compiler_status.cpp | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
Modified: trunk/tools/regression/src/compiler_status.cpp
==============================================================================
--- trunk/tools/regression/src/compiler_status.cpp (original)
+++ trunk/tools/regression/src/compiler_status.cpp 2009-10-29 16:27:37 EDT (Thu, 29 Oct 2009)
@@ -410,15 +410,21 @@
// compile msgs sometimes modified, so make a local copy
string compile( ((pass && no_warn)
? empty_string : element_content( db, "compile" )) );
-
const string & link( pass ? empty_string : element_content( db, "link" ) );
const string & run( (pass && !always_show_run_output)
? empty_string : element_content( db, "run" ) );
string lib( (pass ? empty_string : element_content( db, "lib" )) );
+ string::size_type pos;
+ if ( (pos = compile.find("30 DAY EVALUATION LICENSE")) != string::npos )
+ {
+ compile.erase(pos, 25);
+ while ( compile[0] == '\n' || compile[0] == '\r' ) compile.erase(0,1);
+ }
+
// some compilers output the filename even if there are no errors or
// warnings; detect this if one line of output and it contains no space.
- string::size_type pos = compile.find( '\n', 1 );
+ pos = compile.find( '\n', 1 );
if ( pos != string::npos && compile.size()-pos <= 2
&& compile.find( ' ' ) == string::npos ) compile.clear();
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk