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.
This commit is contained in:
Aleksander Morgado
2022-11-07 14:25:34 +00:00
parent 7ea2452b1e
commit 634f6cbcbc
6 changed files with 65 additions and 20 deletions
+2
View File
@@ -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);