Просмотр исходного кода

output error messages when missing path causes xml output to fail

[SVN r21657]
Beman Dawes 22 лет назад
Родитель
Сommit
6af5fcc2e3
1 измененных файлов с 10 добавлено и 3 удалено
  1. 10 3
      tools/regression/process_jam_log.cpp

+ 10 - 3
tools/regression/process_jam_log.cpp

@@ -241,9 +241,11 @@ namespace
       fs::path pth( locate_root / m_target_directory / "test_log.xml" );
       fs::ofstream file( pth );
       if ( !file )
-        throw fs::filesystem_error( "process_jam_long.cpp",
-          pth, "can't open output file" );
-      xml::write( *m_root, file );
+      {
+        std::cout << "*****Warning - can't open output file: "
+          << pth.string() << "\n";
+      }
+      else xml::write( *m_root, file );
     }
 
     const string & target_directory() const { return m_target_directory; }
@@ -454,6 +456,11 @@ int cpp_main( int argc, char ** argv )
         test2info.insert( std::make_pair( test_name, info ) );
   //      std::cout << test_name << ", " << info.type << ", " << info.file_path << "\n";
       }
+      else
+      {
+        std::cout << "*****Warning - missing test path: " << line << "\n"
+          << "  (Usually occurs when bjam doesn't know how to make a target)\n";
+      }
       continue;
     }
 

粤ICP备19079148号