mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-05 00:38:07 +02:00
core: replace g_test_initialized() by nm_utils_get_testing()
This commit is contained in:
parent
d4dd9ba3cf
commit
9ac4d88ff7
1 changed files with 2 additions and 1 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue