Optimize coverage generating

This commit is contained in:
Gergely Polonkai 2015-11-30 16:36:02 +01:00
parent e44480cb21
commit 61de67efa4
2 changed files with 7 additions and 2 deletions

View File

@ -488,10 +488,13 @@ gswe_timestamp_set_property(GObject *object,
break; break;
/* LCOV_EXCL_START Unless a property ID is missing from above,
* we will never arrive here */
default: default:
G_OBJECT_WARN_INVALID_PROPERTY_ID(object, prop_id, pspec); G_OBJECT_WARN_INVALID_PROPERTY_ID(object, prop_id, pspec);
break; break;
/* LCOV_EXCL_STOP */
} }
} }
@ -585,10 +588,13 @@ gswe_timestamp_get_property(
break; break;
/* LCOV_EXCL_START Unless a property ID is missing from above,
* we will never arrive here */
default: default:
G_OBJECT_WARN_INVALID_PROPERTY_ID(object, prop_id, pspec); G_OBJECT_WARN_INVALID_PROPERTY_ID(object, prop_id, pspec);
break; break;
/* LCOV_EXCL_STOP */
} }
} }

View File

@ -46,8 +46,7 @@ lcov:
# placing the objects files in the .libs/ directory separate from the *.c # placing the objects files in the .libs/ directory separate from the *.c
# we also have to delete tests/.libs/libmoduletestplugin_*.gcda # we also have to delete tests/.libs/libmoduletestplugin_*.gcda
genlcov: genlcov:
$(AM_V_GEN) rm -f $(top_builddir)/tests/.libs/libmoduletestplugin_*.gcda; \ $(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 --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/\* ; \ $(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 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" @echo "file://$(abs_top_builddir)/swe-glib-lcov/index.html"