From adf8528092a22ec4ffc9777937d0765d18b38d2d Mon Sep 17 00:00:00 2001 From: Patrick Pelissier Date: Wed, 3 May 2017 00:51:40 +0200 Subject: [PATCH] Improve coverage report precision --- tests/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Makefile b/tests/Makefile index c0a3a1b0..95cfe618 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -96,7 +96,7 @@ coverage-dir: coverage-dir/%.c: %.c coverage-dir awk '/START_COVERAGE/ { printit=1} (printit == 0) { print }' $< > coverage-dir/first.c awk ' printit { print } /END_COVERAGE/ { printit=1}' $< > coverage-dir/end.c - $(CC) -E -std=c99 -I.. -DNDEBUG $< |grep -v '^#' |awk ' /END_COVERAGE/ { printit=0} printit { print } /START_COVERAGE/ { printit=1 }' |perl -pi -e 's/;/;\n/g ; s/}/}\n/g' > coverage-dir/middle.c + $(CC) -E -std=c99 -I.. -DNDEBUG $< |grep -v '^#' |awk ' /END_COVERAGE/ { printit=0} printit { print } /START_COVERAGE/ { printit=1 }' |perl -pi -e 's/;/;\n/g ; s/}/}\n/g ; s/{/{\n/g' > coverage-dir/middle.c cat coverage-dir/first.c coverage-dir/middle.c coverage-dir/end.c > coverage-dir/$< coverage-test/%.c: coverage-dir/%.c