[tracker/tracker-0.12] tests/libtracker-miner: Compile correctly monitor tests to get coverage
- From: Martyn James Russell <mr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/tracker-0.12] tests/libtracker-miner: Compile correctly monitor tests to get coverage
- Date: Fri, 25 Nov 2011 15:44:26 +0000 (UTC)
commit 0bf14817cda91dd5c2fb6c48d6b24ec355bb71e1
Author: Ivan Frade <ivan frade gmail com>
Date: Tue Nov 1 17:34:19 2011 +0200
tests/libtracker-miner: Compile correctly monitor tests to get coverage
When gcov is enabled, libtracker-miner exports all symbols and no compilation
against the source code files is needed. Compiling against the library
also gives us coverage information of the test.
tests/libtracker-miner/Makefile.am | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/tests/libtracker-miner/Makefile.am b/tests/libtracker-miner/Makefile.am
index 8fb3af2..7dbf0ef 100644
--- a/tests/libtracker-miner/Makefile.am
+++ b/tests/libtracker-miner/Makefile.am
@@ -89,9 +89,13 @@ tracker_thumbnailer_test_SOURCES = \
empty-gobject.c
tracker_monitor_test_SOURCES = \
- $(libtracker_miner_marshal_sources) \
- $(libtracker_miner_monitor_sources) \
tracker-monitor-test.c
+if !ENABLE_GCOV
+# If gcov is enabled, libtracker-miner exports all symbols and this is not needed.
+tracker_monitor_test_SOURCES += \
+ $(libtracker_miner_marshal_sources) \
+ $(libtracker_miner_monitor_sources)
+endif
tracker_priority_queue_test_SOURCES = \
tracker-priority-queue-test.c
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]