Browse Source

merge [61925] from the trunk.

[SVN r69110]
Steven Watanabe 15 years ago
parent
commit
ec555dda83
1 changed files with 5 additions and 1 deletions
  1. 5 1
      tools/regression/src/process_jam_log.cpp

+ 5 - 1
tools/regression/src/process_jam_log.cpp

@@ -201,6 +201,10 @@ namespace
   {
     std::string result;
     string::size_type start_pos( path.find( "libs/" ) );
+    if ( start_pos == string::npos ) {
+      start_pos = path.find( "tools/" );
+    }
+
     if ( start_pos != string::npos )
     {
       // The path format is ...libs/functional/hash/test/something.test/....      
@@ -216,7 +220,7 @@ namespace
       // file.
 
       std::string interesting;
-      start_pos += 5;
+      start_pos = path.find( '/', start_pos ) + 1;
       string::size_type end_pos( path.find( ".test/", start_pos ) );
       end_pos = path.rfind('/', end_pos);
       if (path.substr(end_pos - 5, 5) == "/test")

粤ICP备19079148号