Find code coverage information in more locations

This commit is contained in:
Pierre Pronchery 2018-02-19 02:06:07 +01:00
parent d787d6f1fd
commit 442e4e4578

View File

@ -59,7 +59,7 @@ _coverage()
$MAKE CC="$CC" CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" OBJDIR="$tmpdir/tests/" "$tmpdir/tests/$TARGET"
res=$?
#look for any code executed
$FIND "$tmpdir/tests" -name '*.gcda' | while read filename; do
$FIND "$tmpdir" -name '*.gcda' | while read filename; do
echo
echo "${filename%.gcda}.c:"
$GCOV -n "${filename%.gcda}.gcno"