Browse Source

Detect and report missing boost-test lines in input log file

[SVN r39647]
Beman Dawes 18 years ago
parent
commit
263324f5cd
1 changed files with 8 additions and 0 deletions
  1. 8 0
      tools/regression/process_jam_log.cpp

+ 8 - 0
tools/regression/process_jam_log.cpp

@@ -681,6 +681,14 @@ int cpp_main( int argc, char ** argv )
            line_start.find( ".linkonce" ) == string::npos )
     )
     {
+      if ( !test2info.size() )
+      {
+        std::cout << "*****Error - No \"boost-test\" lines encountered.\n"
+                     "     (Usually occurs when bjam was envoked without the --dump-tests option\n"
+                     "      or bjam was envoked in the wrong directory)\n";
+        return 1;
+      }
+
       string action( ( line_start.find( "Link-action" ) != string::npos
             || line_start.find( "vc-Link" ) != string::npos 
             || line_start.find( "Archive-action" ) != string::npos

粤ICP备19079148号