aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2014-11-03 12:45:31 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2014-11-03 12:45:31 +0100
commit4739ebb61fe0774eabce2eeea74c84912654812c (patch)
treee84739557e33c9b495428275db406ead94d55fee /tests
parent1261f34c8ec98769224c18fd9d18516d5180018f (diff)
downloadremote-logon-service-4739ebb61fe0774eabce2eeea74c84912654812c.tar.gz
remote-logon-service-4739ebb61fe0774eabce2eeea74c84912654812c.tar.bz2
remote-logon-service-4739ebb61fe0774eabce2eeea74c84912654812c.zip
Apply patch glib-deprecated.diff. Provide support for old GLib versions.
Diffstat (limited to 'tests')
-rw-r--r--tests/dbus-interface.c2
-rw-r--r--tests/server-test.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/tests/dbus-interface.c b/tests/dbus-interface.c
index e699ea5..2427b34 100644
--- a/tests/dbus-interface.c
+++ b/tests/dbus-interface.c
@@ -571,7 +571,9 @@ test_dbus_suite (void)
gint
main (gint argc, gchar * argv[])
{
+#if !GLIB_CHECK_VERSION (2, 35, 1)
g_type_init();
+#endif
g_test_init(&argc, &argv, NULL);
/* Test suites */
diff --git a/tests/server-test.c b/tests/server-test.c
index 32299af..06b6233 100644
--- a/tests/server-test.c
+++ b/tests/server-test.c
@@ -270,7 +270,9 @@ test_objects_suite (void)
gint
main (gint argc, gchar * argv[])
{
+#if !GLIB_CHECK_VERSION (2, 35, 1)
g_type_init();
+#endif
g_test_init(&argc, &argv, NULL);
/* Test suites */