Skip spawn tests when collecting coverage
authorMatthias Clasen <mclasen@redhat.com>
Sat, 1 Jun 2013 22:54:57 +0000 (18:54 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 1 Jun 2013 22:54:57 +0000 (18:54 -0400)
These tests break gcov's data collection, so don't link them
against -lgov. See bug 682133.

glib/tests/Makefile.am

index 5753d53..8dc57f8 100644 (file)
@@ -5,6 +5,11 @@ AM_CPPFLAGS = -g $(glib_INCLUDES) $(GLIB_DEBUG_FLAGS)
 DEFS = -DG_LOG_DOMAIN=\"GLib\" -DEXEEXT=\"$(EXEEXT)\"
 AM_CFLAGS = $(GLIB_WARN_CFLAGS)
 
+# These tests corrupt the gcov bookkeeping, so we
+# skip them. See bug 682133
+spawn_singlethread_LDFLAGS = $(patsubst -lgcov,,$(LDFLAGS))
+spawn_multithreaded_LDFLAGS = $(patsubst -lgcov,,$(LDFLAGS))
+
 # -----------------------------------------------------------------------------
 
 dist_test_data = \