[gssdp] More g_type_init deprecation
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gssdp] More g_type_init deprecation
- Date: Fri, 30 Nov 2012 13:48:31 +0000 (UTC)
commit fdf8971e263af0fb082849c6a63b9147c4079311
Author: Jens Georg <mail jensge org>
Date: Fri Nov 30 14:40:19 2012 +0100
More g_type_init deprecation
tests/gtest/test-functional.c | 2 ++
tests/gtest/test-regression.c | 2 ++
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 ()) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]