summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Bloch <m.bloch@partner.samsung.com>2019-10-15 16:09:22 +0200
committerMichal Bloch <m.bloch@partner.samsung.com>2019-10-16 17:15:12 +0200
commit10af02ae1d084219d126e17f0824a16a5673d083 (patch)
tree3a7bf955513727d67900eaceabd8f8f365f92f86
parent0cdfef993f7f3b7d17ae092d6b6d256c979a6242 (diff)
downloadresourced-sandbox/mbloch/lcov.tar.gz
resourced-sandbox/mbloch/lcov.tar.bz2
resourced-sandbox/mbloch/lcov.zip
Change-Id: Ibbb07832537339b45236d9e598af03f71dfa8fc8 Signed-off-by: Michal Bloch <m.bloch@partner.samsung.com>
-rw-r--r--packaging/resourced.spec1
-rw-r--r--src/CMakeLists.txt2
2 files changed, 2 insertions, 1 deletions
diff --git a/packaging/resourced.spec b/packaging/resourced.spec
index 08291367..0d4100f9 100644
--- a/packaging/resourced.spec
+++ b/packaging/resourced.spec
@@ -41,6 +41,7 @@ BuildRequires: pkgconfig(capi-system-info)
BuildRequires: pkgconfig(libtzplatform-config)
BuildRequires: pkgconfig(storage)
BuildRequires: pkgconfig(libgum)
+BuildRequires: lcov
#only for data types
BuildRequires: pkgconfig(tapi)
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index d4713d79..29fdf8b5 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -133,7 +133,7 @@ FOREACH(flag ${RESOURCED_REQUIRE_PKGS_CFLAGS})
SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
ENDFOREACH(flag)
-SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -pthread -fPIE -fPIC")
+SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -fprofile-arcs -ftest-coverage -pthread -fPIE -fPIC")
CONFIGURE_FILE(${INCLUDE_COMMON_DIR}/config.h.in
${INCLUDE_COMMON_DIR}/config.h)