We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3e12c0f commit 6d46080Copy full SHA for 6d46080
.gitignore
@@ -5,9 +5,12 @@ bin
5
.gdb_history
6
7
# Vim files
8
-.*.swp
+.*swp
9
10
# Test files
11
parent
12
child
13
test.log
14
+*.gcda
15
+*.gcno
16
+*.gcov
tests/basic/run.sh
@@ -19,10 +19,14 @@ fi
19
20
CFLAGS='-g -O2 -Wall -Wextra -Werror -shared -fPIC'
21
22
+if test -n "${COVERAGE:-}"; then
23
+ CFLAGS="$CFLAGS --coverage -DNDEBUG"
24
+fi
25
+
26
ROOT=$PWD/../..
27
-${CC:-gcc} parent.c -o parent
-${CC:-gcc} child.c -o child
28
+${CC:-gcc} --coverage parent.c -o parent
29
+${CC:-gcc} --coverage child.c -o child
30
31
export PREGRIND_FLAGS='-q --error-exitcode=1'
32
0 commit comments