summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJens Georg <mail@jensge.org>2012-11-30 14:40:19 +0100
committerJens Georg <mail@jensge.org>2012-11-30 14:40:41 +0100
commitfdf8971e263af0fb082849c6a63b9147c4079311 (patch)
tree3e6ae6435df6a7c9fabcdb495b5c0dc09a017bc8 /tests
parentc46f1f5e7f45217d584d0e9afdef0320d19537da (diff)
downloadgssdp-fdf8971e263af0fb082849c6a63b9147c4079311.tar.gz
More g_type_init deprecation
Diffstat (limited to 'tests')
-rw-r--r--tests/gtest/test-functional.c2
-rw-r--r--tests/gtest/test-regression.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/tests/gtest/test-functional.c b/tests/gtest/test-functional.c
index 2908b25..e263ecf 100644
--- a/tests/gtest/test-functional.c
+++ b/tests/gtest/test-functional.c
@@ -489,7 +489,9 @@ test_discovery_versioned_ignore_older (void)
int main(int argc, char *argv[])
{
+#if !GLIB_CHECK_VERSION (2, 35, 0)
g_type_init ();
+#endif
g_test_init (&argc, &argv, NULL);
g_test_add_func ("/functional/resource-group/discovery/ssdp:all",
diff --git a/tests/gtest/test-regression.c b/tests/gtest/test-regression.c
index 4459b28..a68e44c 100644
--- a/tests/gtest/test-regression.c
+++ b/tests/gtest/test-regression.c
@@ -250,7 +250,9 @@ void test_bgo682099 (void)
int main (int argc, char *argv[])
{
+#if !GLIB_CHECK_VERSION (2, 35, 0)
g_type_init ();
+#endif
g_test_init (&argc, &argv, NULL);
if (g_test_slow ()) {