Hi Bram,

On Wed, Apr 7, 2021 at 10:01 AM Bram Moolenaar <[email protected]> wrote:
>
>
> On Di, 06 Apr 2021, Yegappan Lakshmanan wrote:
>
> > > > Hi,
> > > >
> > > > Based on the code coverage report:
> > > >
> > > > https://codecov.io/gh/vim/vim/tree/e8c4660a55364a5d3e395652d1202b8702666823/src/libvterm
> > >
> > > I do see some coverage information on libvterm. Perhaps it wasn't
> > > updated yet?
> >
> > The coverage for the functions used directly by Vim is included
> > in the report. But the coverage for the functions used in the
> > libvterm tests (make test_libvterm) is not included. For example,
> > the coverage for harness.c file used by the libvterm tests shows
> > up as zero.
>
> When I look at it: https://codecov.io/gh/vim/vim/tree/master/src/libvterm
> It shows 86% coverage.
>
> > The libvterm sources are included in the overall Vim code coverage.
> > So this reduces the Vim code coverage percentage.
> >
> > I see the following messages in the Github action log when
> > generating the coverage information. It looks like gcov is not able
> > to locate the libvterm sources.
> >
> > ==> Running gcov in /home/runner/work/vim/vim (disable via -X gcov)
> > xxd.c: No such file or directory
> > t/harness.c: No such file or directory
> > t/harness.c: No such file or directory
> > src/pen.c: No such file or directory
> > src/unicode.c: No such file or directory
> > src/mouse.c: No such file or directory
> > src/keyboard.c: No such file or directory
> > src/parser.c: No such file or directory
> > src/encoding.c: No such file or directory
> > include/vterm.h: No such file or directory
> > src/utf8.h: No such file or directory
> > src/vterm.c: No such file or directory
> > src/rect.h: No such file or directory
> > src/screen.c: No such file or directory
> > src/state.c: No such file or directory
> > src/pen.c: No such file or directory
> > src/unicode.c: No such file or directory
> > src/mouse.c: No such file or directory
> > src/keyboard.c: No such file or directory
> > src/parser.c: No such file or directory
> > src/encoding.c: No such file or directory
> > include/vterm.h: No such file or directory
> > src/utf8.h: No such file or directory
> > src/vterm.c: No such file or directory
> > src/rect.h: No such file or directory
> > src/screen.c: No such file or directory
> > src/state.c: No such file or directory
> >
> > > However, I see that apparently gcov crashed here:
> > > https://github.com/vim/vim/runs/2272767418#step:16:824
> > >
> > > Not sure if we can do anything against that.
> >
> > I am not sure whether this gcov crash is leading to this problem
> > or not (as the coverage for the rest of the source files is included
> > in the report).
>
> Have a look at different runs, perhaps there is a hint about when it
> fails and when it works.
>

Yes. It looks like different runs report different coverage data
for these files. In the code coverage report that you quoted, I see
that the coverage data for the libvterm source files is present.

Regards,
Yegappan

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/CAAW7x7m%3DfPDpGxm5BDZhSyaay_nOKwQC4FFavMjVZ977BqJbQg%40mail.gmail.com.

Raspunde prin e-mail lui