aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorAleksander Morgado <aleksandermj@chromium.org>2022-10-27 22:08:37 +0000
committerAleksander Morgado <aleksandermj@chromium.org>2022-11-07 14:25:34 +0000
commit634f6cbcbc424a557625e3d2eb01ef0694948e25 (patch)
tree18342d8ec232893b28c0432ff78313448777f079 /src/main.c
parent7ea2452b1e4ff3f572dd93e00a01868a663b3cc4 (diff)
build: disable Test interface in base manager if building without tests
There is no real need for this interface if tests are not being built.
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index fbf6fce2..3c740395 100644
--- a/src/main.c
+++ b/src/main.c
@@ -97,7 +97,9 @@ bus_acquired_cb (GDBusConnection *connection,
!mm_context_get_no_auto_scan (),
mm_context_get_filter_policy (),
mm_context_get_initial_kernel_events (),
+#if defined WITH_TESTS
mm_context_get_test_enable (),
+#endif
&error);
if (!manager) {
mm_warn ("could not create manager: %s", error->message);