Code

t/Makefile: Pass gcov flags to tests as well.
authorSebastian Harl <sh@tokkee.org>
Sun, 22 Dec 2013 17:43:11 +0000 (18:43 +0100)
committerSebastian Harl <sh@tokkee.org>
Sun, 22 Dec 2013 17:43:11 +0000 (18:43 +0100)
Else, some tests might not compile correctly.

t/Makefile.am

index 20bba43bae213184f179f0afe01504152f93ac3a..c74da4496d1e0b0f594a1def5de3c9a0dd7e9c68 100644 (file)
@@ -1,4 +1,6 @@
-AM_CFLAGS = @STRICT_CFLAGS@
+# coverage related flags are only set when gcov is enabled
+AM_CFLAGS = @STRICT_CFLAGS@ @COVERAGE_CFLAGS@
+AM_LDFLAGS = @COVERAGE_LDFLAGS@
 AM_CPPFLAGS = -I$(top_srcdir)/src/include
 
 TESTS = libsysdb_test libsysdb_net_test