Skip to content

Commit d6ecad8

Browse files
committed
Be more thorough about cleaning out gcov litter.
At least on my machine, a run with code coverage enabled produces some ".gcov" files whose names begin with ".". "rm -f *.gcov" fails to match those, so they don't get cleaned up by "make clean". Fix it.
1 parent 3c8de95 commit d6ecad8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Makefile.global.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -878,7 +878,7 @@ ifeq ($(enable_coverage), yes)
878878
gcda_files := $(wildcard *.gcda)
879879

880880
lcov.info: $(gcda_files)
881-
rm -f *.gcov
881+
rm -f *.gcov .*.gcov
882882
$(if $^,$(LCOV) -d . -c -o $@ $(LCOVFLAGS) --gcov-tool $(GCOV))
883883

884884
%.c.gcov: %.gcda | lcov.info
@@ -899,7 +899,7 @@ clean distclean maintainer-clean: clean-coverage
899899
.PHONY: clean-coverage
900900
clean-coverage:
901901
rm -rf coverage
902-
rm -f *.gcda *.gcno lcov.info *.gcov *.gcov.out
902+
rm -f *.gcda *.gcno lcov.info *.gcov .*.gcov *.gcov.out
903903

904904

905905
# User-callable target to reset counts between test runs

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy