Menu

#153 lcov: Fix for "WARNING: cannot find an entry for" problem

Other
open
nobody
Tools (21)
5
2016-07-22
2010-03-12
Dan Furlani
No

match_filename fails when the filenames in @list contain /../ components. This causes warnings like "geninfo: WARNING: cannot find an entry for ... in .gcno file, skipping file!" and "geninfo: WARNING: no data found for ...".

Patched match_filename to use solve_relative_path to remove the /../ and /./ components of the path before comparing. It still returns the original "entry", otherwise you still get the "no data found for" failures.

May not be the most elegant fix but it works for me.

Discussion

  • Dan Furlani

    Dan Furlani - 2010-03-12

    match_filename patch

     
  • Dan Furlani

    Dan Furlani - 2010-03-15
    • labels: --> Tools
    • milestone: --> Other
     
  • Dontsov Evgeny

    Dontsov Evgeny - 2016-07-22

    download lcov-1.12.tar.gz
    (wget <link>)
    tar xvf lcov-1.12.tar.gz
    cd lcov-1.12
    make install

     

Log in to post a comment.

MongoDB Logo MongoDB