From 61de67efa4e0f413e384a4734ec48688dd3d5933 Mon Sep 17 00:00:00 2001 From: Gergely Polonkai Date: Mon, 30 Nov 2015 16:36:02 +0100 Subject: [PATCH] Optimize coverage generating --- src/gswe-timestamp.c | 6 ++++++ swe-glib.mk | 3 +-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/gswe-timestamp.c b/src/gswe-timestamp.c index fa9971a..a1d5fde 100644 --- a/src/gswe-timestamp.c +++ b/src/gswe-timestamp.c @@ -488,10 +488,13 @@ gswe_timestamp_set_property(GObject *object, break; + /* LCOV_EXCL_START Unless a property ID is missing from above, + * we will never arrive here */ default: G_OBJECT_WARN_INVALID_PROPERTY_ID(object, prop_id, pspec); break; + /* LCOV_EXCL_STOP */ } } @@ -585,10 +588,13 @@ gswe_timestamp_get_property( break; + /* LCOV_EXCL_START Unless a property ID is missing from above, + * we will never arrive here */ default: G_OBJECT_WARN_INVALID_PROPERTY_ID(object, prop_id, pspec); break; + /* LCOV_EXCL_STOP */ } } diff --git a/swe-glib.mk b/swe-glib.mk index dea9457..7724273 100644 --- a/swe-glib.mk +++ b/swe-glib.mk @@ -46,8 +46,7 @@ lcov: # placing the objects files in the .libs/ directory separate from the *.c # we also have to delete tests/.libs/libmoduletestplugin_*.gcda genlcov: - $(AM_V_GEN) rm -f $(top_builddir)/tests/.libs/libmoduletestplugin_*.gcda; \ - $(LTP) --quiet --directory $(top_builddir) --capture --output-file swe-glib-lcov.info --test-name SWE_GLIB_PERF --no-checksum --compat-libtool --ignore-errors source; \ + $(AM_V_GEN) $(LTP) --quiet --directory $(top_builddir) --capture --output-file swe-glib-lcov.info --test-name SWE_GLIB_PERF --no-checksum --compat-libtool --ignore-errors source; \ $(LTP) --quiet --output-file swe-glib-lcov.info --remove swe-glib-lcov.info docs/reference/\* /tmp/\* ; \ LANG=C $(LTP_GENHTML) --quiet --prefix $(top_builddir) --output-directory swe-glib-lcov --title "SWE-GLib Code Coverage" --legend --frames --show-details swe-glib-lcov.info --ignore-errors source @echo "file://$(abs_top_builddir)/swe-glib-lcov/index.html"