[prev in list] [next in list] [prev in thread] [next in thread]
List: ltp-coverage
Subject: Re: [Ltp-coverage] Some questions about lcov
From: Peter Oberparleiter <oberpar () linux ! vnet ! ibm ! com>
Date: 2010-05-18 8:15:14
Message-ID: 4BF24C92.6000603 () linux ! vnet ! ibm ! com
[Download RAW message or body]
Hi,
On 10.05.2010 17:42, 敌炸酱面 wrote:
> There are some problems when I'm using lcov.
> I have a project in the attach file. There a WARNING message when i run
> lcov. like this:
> geninfo: WARNING: no data found for
> /home/corper/program/hello/src/../src/hello.cpp
>
> I don't know how to solve it. Please help me.
>
> the whole information is:
>
> corper@corper-desktop:~/program/hello/cov$ lcov -d ../Debug/ -c -b ../src/
[...]
> ../src/hello.cpp:could not open output file '..#src#hello.cpp.gcov'
> geninfo: WARNING: no data found for
> /home/corper/program/hello/src/../src/hello.cpp
> Finished .info-file creation
> Overall coverage rate:
> lines......: 3.2% (1 of 31 lines)
> functions..: 0.0% (0 of 11 functions)
> branches...: 0.0% (0 of 6 branches)
I tried to recreate the problem using the hello.tar.gz file your sent
but everything works fine (I used the current CVS version of LCOV):
hello/cov> lcov -d ../Debug/ -c -b ../src/ -o test.info
Capturing coverage data from ../Debug/
Found gcov version: 4.1.2
Scanning ../Debug/ for .gcda files ...
Found 1 data files in ../Debug/
Processing hello.gcda
/home/oberpar/tmp/ggg/hello/Debug/src/hello.gcno:version '404*', prefer
'401p'
/home/oberpar/tmp/ggg/hello/Debug/src/hello.gcda:version '404*', prefer
version '401p'
/usr/include/c++/4.4/bits/ios_base.h:cannot open source file
/usr/include/c++/4.4/ostream:cannot open source file
/usr/include/c++/4.4/bits/basic_ios.h:cannot open source file
/usr/include/c++/4.4/iostream:cannot open source file
/usr/include/c++/4.4/bits/char_traits.h:cannot open source file
/usr/include/c++/4.4/bits/locale_facets.h:cannot open source file
Finished .info-file creation
Overall coverage rate:
lines......: 14.3% (5 of 35 lines)
functions..: 21.4% (3 of 14 functions)
branches...: 20.0% (2 of 10 branches)
The warning "could not open output file" that you are seeing sounds a
little as if your file system had problems (e.g. was full or read-only,
etc.).
Regards,
Peter Oberparleiter
------------------------------------------------------------------------------
_______________________________________________
Ltp-coverage mailing list
Ltp-coverage@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-coverage
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic