summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier CrĂȘte <olivier.crete@collabora.com>2020-03-18 18:53:44 -0400
committerOlivier CrĂȘte <olivier.crete@collabora.com>2020-03-18 19:13:49 -0400
commitae5fa7371ad3b0c7dfbfd8f1fbb697674a42cb47 (patch)
tree01ca4a1da33a126ebca58308e60a3457ddf6a3a3
parent79db85f01ffe7fc29cf128f1232f8b7261d580b3 (diff)
downloadgupnp-igd-ae5fa7371ad3b0c7dfbfd8f1fbb697674a42cb47.tar.gz
Remove calls to g_type_init() and g_thread_init()
-rw-r--r--tests/examples/test-thread.c3
-rw-r--r--tests/examples/test.c3
-rw-r--r--tests/gtest/gupnp-simple-igd.c2
3 files changed, 0 insertions, 8 deletions
diff --git a/tests/examples/test-thread.c b/tests/examples/test-thread.c
index ce6d669..4ff97cb 100644
--- a/tests/examples/test-thread.c
+++ b/tests/examples/test-thread.c
@@ -52,9 +52,6 @@ main (int argc, char **argv)
internal_port = atoi (argv[3]);
g_return_val_if_fail (external_port && internal_port, 1);
- g_type_init ();
- g_thread_init (NULL);
-
igd = gupnp_simple_igd_thread_new ();
g_signal_connect (igd, "mapped-external-port",
diff --git a/tests/examples/test.c b/tests/examples/test.c
index d2faa80..128defd 100644
--- a/tests/examples/test.c
+++ b/tests/examples/test.c
@@ -67,9 +67,6 @@ main (int argc, char **argv)
internal_port = atoi (argv[3]);
g_return_val_if_fail (external_port && internal_port, 1);
- g_type_init ();
- g_thread_init (NULL);
-
ctx = g_main_context_new ();
loop = g_main_loop_new (ctx, FALSE);
diff --git a/tests/gtest/gupnp-simple-igd.c b/tests/gtest/gupnp-simple-igd.c
index d051d13..6e62fea 100644
--- a/tests/gtest/gupnp-simple-igd.c
+++ b/tests/gtest/gupnp-simple-igd.c
@@ -475,8 +475,6 @@ test_gupnp_simple_igd_empty_ip(void)
int main (int argc, char **argv)
{
- g_type_init ();
- g_thread_init (NULL);
g_test_init (&argc, &argv, NULL);
g_test_add_func("/simpleigd/new", test_gupnp_simple_igd_new);