Ticket #10037: process_jam_log.cpp.patch

File process_jam_log.cpp.patch, 801 bytes (added by Niklas Angare <li51ckf02@…>, 8 years ago)
  • tools/regression/src/process_jam_log.cpp

    diff --git a/tools/regression/src/process_jam_log.cpp b/tools/regression/src/process_jam_log.cpp
    index 8f1b19b..809243c 100644
    a b namespace  
    272272        // the type of grist.
    273273        convert_path_separators( dir );
    274274        dir.erase( 0, 1 );
    275         // We need path from root, not from 'status' dir.
     275        // We need path from root, not from a subdirectory such as 'status'
     276        // or 'libs/any'.
    276277        if (dir.find("../") == 0)
    277           dir.erase(0,3);
     278        {
     279          while (dir.find("../") == 0)
     280            dir.erase(0,3);
     281        }
    278282        else // dir is always relative to the boost directory tree
    279283          dir.erase( 0, locate_root.string().size()+1 );
    280284    }