Browse Source

compiler_status: ignore 30 DAY EVALUATION LICENSE message

[SVN r57238]
Beman Dawes 16 years ago
parent
commit
a5930b6dfe
1 changed files with 8 additions and 2 deletions
  1. 8 2
      tools/regression/src/compiler_status.cpp

+ 8 - 2
tools/regression/src/compiler_status.cpp

@@ -410,15 +410,21 @@ const fs::path find_bin_path(const string& relative)
     // 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();
 

粤ICP备19079148号