summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2015-05-06 16:45:42 +0200
committerThomas Haller <thaller@redhat.com>2015-05-06 17:23:33 +0200
commite02be200983ed947c9d71695a072121a6df3b196 (patch)
tree2252de5ac66225b046b4b9b9a7ec7537927eb0b5
parent4f83ab52088d44c3d14a67a698fc6fe30388d8d4 (diff)
downloadNetworkManager-th/keyfile-owner-check-bgo701112.tar.gz
core: replace g_test_initialized() by nm_utils_get_testing()th/keyfile-owner-check-bgo701112
-rw-r--r--src/nm-dbus-manager.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nm-dbus-manager.c b/src/nm-dbus-manager.c
index b367b82812..b8b5325671 100644
--- a/src/nm-dbus-manager.c
+++ b/src/nm-dbus-manager.c
@@ -36,6 +36,7 @@
#include <dbus/dbus-glib-lowlevel.h>
#include <string.h>
#include "nm-logging.h"
+#include "NetworkManagerUtils.h"
#define PRIV_SOCK_PATH NMRUNDIR "/private"
#define PRIV_SOCK_TAG "private"
@@ -491,7 +492,7 @@ private_server_setup (NMDBusManager *self)
NMDBusManagerPrivate *priv = NM_DBUS_MANAGER_GET_PRIVATE (self);
/* Skip this step if this is just a test program */
- if (g_test_initialized ())
+ if (nm_utils_get_testing ())
return;
/* Set up our main private DBus socket */