Bug 38840 - Adding coverage analysis to unit tests

Michael Stahl mstahl at redhat.com
Tue Aug 21 04:38:57 PDT 2012


On 21/08/12 11:17, John Smith wrote:
> Hi,
> 
> 
> Im running into an issue I havent seen before on LibreOffice. When I
> do a make with
> 
> LDFLAGS+='-fprofile-arcs' CFLAGS+='-fprofile-arcs -ftest-coverage'
> CXXFLAGS+='-fprofile-arcs -ftest-coverage' CPPFLAGS+='-fprofile-arcs
> -ftest-coverage'
> 
> I now still get an error about "undefined reference to
> `__gcov_merge_add'" in a specific module 'odk'. Everything up until
> that point works as expected. I also tried specifying '-lgcov' and
> '-coverage', but the result is the same.
> 
> When I 'make odk' I get the output below, but I have no idea what
> could be causing this ? Any and all help is sincerely appreciated.

no idea, but the ODK/SDK isn't that important for code coverage because
it doesn't contain actual office code so you can just disable it with
--disable-odk




More information about the LibreOffice mailing list