From 22aba04b4794f43dceb0f688f2c36d707ad88a1c Mon Sep 17 00:00:00 2001 From: Patrick Pelissier Date: Tue, 26 Jul 2022 23:12:19 +0200 Subject: [PATCH] Activate optimisation for coverage --- tests/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Makefile b/tests/Makefile index 40c887e6..c60374bf 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -68,7 +68,7 @@ all: awk ' printit { print } /END_COVERAGE/ { printit=1}' $< > $<.end.c $(CC) $(CPPFLAGS) -E -DNDEBUG -DWITHIN_COVERAGE $< |grep -v '^#' |awk ' /END_COVERAGE/ { printit=0} printit { print } /START_COVERAGE/ { printit=1 }' |perl -p -e "s/;(?![\"'])/;\n/g ; s/}(?![\"'])/}\n/g ; s/{(?![\"'])/{\n/g" > $<.middle.c cat $<.first.c $<.middle.c $<.end.c > $<.c - $(CC) $(CPPFLAGS) $(LDFLAGS) -ftest-coverage -fprofile-arcs -g $<.c -o $<.exe + $(CC) $(CPPFLAGS) $(LDFLAGS) -ftest-coverage -fprofile-arcs -O -g $<.c -o $<.exe $(LOG_COMPILER) ./$<.exe LANG=C gcov $<.gcno > `basename $< .c`.synt cat `basename $< .c`.synt