diff options
| author | Thomas Haller <thaller@redhat.com> | 2015-07-03 15:11:17 +0200 |
|---|---|---|
| committer | Thomas Haller <thaller@redhat.com> | 2015-07-12 13:56:52 +0200 |
| commit | 7a3ab5c02f2b7168e46d0e4a30e8ba1858a52a09 (patch) | |
| tree | 7173523018a8cacf7efffe5134f0aefa82a4bfcc /libnm-glib | |
| parent | 8407a55a5d4dc18a89b9db4e92196a3a44b9869f (diff) | |
| download | NetworkManager-7a3ab5c02f2b7168e46d0e4a30e8ba1858a52a09.tar.gz | |
test: initialize tests with nmtst_init()
Diffstat (limited to 'libnm-glib')
| -rw-r--r-- | libnm-glib/tests/test-nm-client.c | 11 | ||||
| -rw-r--r-- | libnm-glib/tests/test-remote-settings-client.c | 11 |
2 files changed, 10 insertions, 12 deletions
diff --git a/libnm-glib/tests/test-nm-client.c b/libnm-glib/tests/test-nm-client.c index af3722eba4..0ec3924d99 100644 --- a/libnm-glib/tests/test-nm-client.c +++ b/libnm-glib/tests/test-nm-client.c @@ -33,7 +33,8 @@ #include "nm-device-wifi.h" #include "nm-device-ethernet.h" #include "nm-device-wimax.h" -#include "nm-glib-compat.h" + +#include "nm-test-utils.h" #include "common.h" @@ -880,14 +881,12 @@ test_client_manager_running (void) /*******************************************************************/ +NMTST_DEFINE (); + int main (int argc, char **argv) { -#if !GLIB_CHECK_VERSION (2, 35, 0) - g_type_init (); -#endif - - g_test_init (&argc, &argv, NULL); + nmtst_init (&argc, &argv, TRUE); loop = g_main_loop_new (NULL, FALSE); diff --git a/libnm-glib/tests/test-remote-settings-client.c b/libnm-glib/tests/test-remote-settings-client.c index a109f8df4a..afaa6fe117 100644 --- a/libnm-glib/tests/test-remote-settings-client.c +++ b/libnm-glib/tests/test-remote-settings-client.c @@ -36,7 +36,8 @@ #include "nm-remote-settings.h" #include "common.h" -#include "gsystem-local-alloc.h" + +#include "nm-test-utils.h" static NMTestServiceInfo *sinfo; static NMRemoteSettings *settings = NULL; @@ -422,17 +423,15 @@ test_service_running (void) /*******************************************************************/ +NMTST_DEFINE (); + int main (int argc, char **argv) { int ret; GError *error = NULL; -#if !GLIB_CHECK_VERSION (2, 35, 0) - g_type_init (); -#endif - - g_test_init (&argc, &argv, NULL); + nmtst_init (&argc, &argv, TRUE); bus = dbus_g_bus_get (DBUS_BUS_SESSION, &error); g_assert_no_error (error); |
