Ver código fonte

allow fs::native args, empty subinclude path

[SVN r17787]
Beman Dawes 23 anos atrás
pai
commit
8ba91e7889
1 arquivos alterados com 5 adições e 4 exclusões
  1. 5 4
      tools/regression/compiler_status.cpp

+ 5 - 4
tools/regression/compiler_status.cpp

@@ -487,8 +487,9 @@ const string & attribute_value( const xml::element_ptr & element,
         string subinclude_bin_dir(
           line.substr( pos, line.find_first_of( " \t", pos )-pos ) );
 //      std::cout << "subinclude: " << subinclude_bin_dir << '\n';
-        do_rows_for_sub_tree( 
-          locate_root / subinclude_bin_dir / "/bin", results );  
+        fs::path subinclude_path( locate_root / subinclude_bin_dir / "/bin" );
+        if ( fs::exists( subinclude_path ) )
+          { do_rows_for_sub_tree( subinclude_path, results ); }
       }
     }
 
@@ -600,7 +601,7 @@ int cpp_main( int argc, char * argv[] ) // note name!
     return 1;
   }
 
-  report.open( argv[2] );
+  report.open( fs::path( argv[2], fs::native ) );
   if ( !report )
   {
     std::cerr << "Could not open report output file: " << argv[2] << std::endl;
@@ -610,7 +611,7 @@ int cpp_main( int argc, char * argv[] ) // note name!
   if ( argc == 4 )
   {
     links_name = argv[3];
-    links_file.open( links_name );
+    links_file.open( fs::path( links_name, fs::native ) );
     if ( !links_file )
     {
       std::cerr << "Could not open links output file: " << links_name << std::endl;

粤ICP备19079148号