Kaynağa Gözat

Fixed logic in selection of directory used to determine which compiler to use (previously as long as a file was a directory then it would be selected and the logic that checks for .test extension was never executed)

[SVN r20704]
John Maddock 22 yıl önce
ebeveyn
işleme
5f78396dc1
1 değiştirilmiş dosya ile 3 ekleme ve 2 silme
  1. 3 2
      tools/regression/compiler_status.cpp

+ 3 - 2
tools/regression/compiler_status.cpp

@@ -678,8 +678,9 @@ const string & attribute_value( const xml::element & element,
       "<td><a href=\"compiler_status.html#test-type\">Test Type</a></td>\n";
 
     fs::directory_iterator itr( bin_path );
-    while ( itr != end_itr && !fs::is_directory( *itr )
-      && itr->string().find( ".test" ) != (itr->string().size()-5) )
+    while ( itr != end_itr 
+      && ((itr->string().find( ".test" ) != (itr->string().size()-5))
+      || !fs::is_directory( *itr )))
       ++itr; // bypass chaff
     if ( itr != end_itr )
     {

粤ICP备19079148号