summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2013-11-11 17:19:59 +0000
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2014-01-07 13:49:43 +0000
commite3d4c2977fbf086e7d42c77e3713e1bcddda2a9c (patch)
tree6b9bd0fb1a069796367724a31e822797129febd7 /tests
parent4480d2b9f5bb72c8acf0e9f712c6f8346a174f91 (diff)
downloadtelepathy-glib-e3d4c2977fbf086e7d42c77e3713e1bcddda2a9c.tar.gz
Stop calling g_type_init()
It was deprecated in GLib 2.36, and we already have a hard dependency on that version. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=71048 Reviewed-by: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Diffstat (limited to 'tests')
-rw-r--r--tests/asv.c2
-rw-r--r--tests/capabilities.c1
-rw-r--r--tests/contact-search-result.c1
-rw-r--r--tests/dbus/account-manager.c1
-rw-r--r--tests/dbus/account-request.c1
-rw-r--r--tests/dbus/account.c1
-rw-r--r--tests/dbus/call-cancellation.c1
-rw-r--r--tests/dbus/call-channel.c1
-rw-r--r--tests/dbus/channel-dispatch-operation.c1
-rw-r--r--tests/dbus/channel-dispatcher.c1
-rw-r--r--tests/dbus/channel-introspect.c1
-rw-r--r--tests/dbus/channel-manager-request-properties.c1
-rw-r--r--tests/dbus/channel-request.c1
-rw-r--r--tests/dbus/cli-group.c1
-rw-r--r--tests/dbus/client.c1
-rw-r--r--tests/dbus/cm-message.c1
-rw-r--r--tests/dbus/cm.c1
-rw-r--r--tests/dbus/connection-aliasing.c3
-rw-r--r--tests/dbus/connection-balance.c3
-rw-r--r--tests/dbus/connection-bug-18845.c1
-rw-r--r--tests/dbus/connection-error.c2
-rw-r--r--tests/dbus/connection-getinterfaces-failure.c1
-rw-r--r--tests/dbus/connection-handles.c1
-rw-r--r--tests/dbus/connection-inject-bug16307.c1
-rw-r--r--tests/dbus/connection-interests.c1
-rw-r--r--tests/dbus/connection.c1
-rw-r--r--tests/dbus/contact-lists.c2
-rw-r--r--tests/dbus/contacts-bug-19101.c1
-rw-r--r--tests/dbus/contacts-mixin.c1
-rw-r--r--tests/dbus/disconnection.c1
-rw-r--r--tests/dbus/example-no-protocols.c1
-rw-r--r--tests/dbus/file-transfer-channel.c1
-rw-r--r--tests/dbus/finalized-in-invalidated-handler.c1
-rw-r--r--tests/dbus/group-mixin.c1
-rw-r--r--tests/dbus/handle-repo.c1
-rw-r--r--tests/dbus/handle-set.c1
-rw-r--r--tests/dbus/invalidated-while-invoking-signals.c1
-rw-r--r--tests/dbus/long-connection-name.c1
-rw-r--r--tests/dbus/message-mixin.c1
-rw-r--r--tests/dbus/params-cm.c1
-rw-r--r--tests/dbus/protocol-objects.c1
-rw-r--r--tests/dbus/self-presence.c1
-rw-r--r--tests/dbus/text-mixin.c1
-rw-r--r--tests/dbus/text-respawn.c1
-rw-r--r--tests/dbus/unsupported-interface.c1
-rw-r--r--tests/debug-domain.c2
-rw-r--r--tests/dtmf-player.c2
-rw-r--r--tests/enums.c4
-rw-r--r--tests/gnio-util.c1
-rw-r--r--tests/intset.c2
-rw-r--r--tests/lib/util.c3
-rw-r--r--tests/signal-connect-object.c1
-rw-r--r--tests/util-cxx.cpp2
-rw-r--r--tests/util.c2
54 files changed, 0 insertions, 71 deletions
diff --git a/tests/asv.c b/tests/asv.c
index 80981ff18..390304f80 100644
--- a/tests/asv.c
+++ b/tests/asv.c
@@ -37,8 +37,6 @@ int main (int argc, char **argv)
/* Setup */
- g_type_init ();
-
hash = tp_asv_new (
"d:123.2", G_TYPE_DOUBLE, 123.2,
"s:test", G_TYPE_STRING, "test",
diff --git a/tests/capabilities.c b/tests/capabilities.c
index 7eab5e76e..3427117c3 100644
--- a/tests/capabilities.c
+++ b/tests/capabilities.c
@@ -23,7 +23,6 @@ static void
setup (Test *test,
gconstpointer data)
{
- g_type_init ();
tp_debug_set_flags ("all");
}
diff --git a/tests/contact-search-result.c b/tests/contact-search-result.c
index 63f914be5..185a31c1c 100644
--- a/tests/contact-search-result.c
+++ b/tests/contact-search-result.c
@@ -63,7 +63,6 @@ int
main (int argc,
char **argv)
{
- g_type_init ();
tp_debug_set_flags ("all");
g_test_init (&argc, &argv, NULL);
diff --git a/tests/dbus/account-manager.c b/tests/dbus/account-manager.c
index 65b210d2d..0cf95e9d7 100644
--- a/tests/dbus/account-manager.c
+++ b/tests/dbus/account-manager.c
@@ -134,7 +134,6 @@ static void
setup (Test *test,
gconstpointer data)
{
- g_type_init ();
tp_debug_set_flags ("all");
test->mainloop = g_main_loop_new (NULL, FALSE);
diff --git a/tests/dbus/account-request.c b/tests/dbus/account-request.c
index 055be2e89..aedc6b858 100644
--- a/tests/dbus/account-request.c
+++ b/tests/dbus/account-request.c
@@ -547,7 +547,6 @@ int
main (int argc,
char **argv)
{
- g_type_init ();
tp_tests_abort_after (10);
tp_debug_set_flags ("all");
diff --git a/tests/dbus/account.c b/tests/dbus/account.c
index 81ac8f159..1df043ab5 100644
--- a/tests/dbus/account.c
+++ b/tests/dbus/account.c
@@ -930,7 +930,6 @@ int
main (int argc,
char **argv)
{
- g_type_init ();
tp_tests_abort_after (10);
tp_debug_set_flags ("all");
diff --git a/tests/dbus/call-cancellation.c b/tests/dbus/call-cancellation.c
index d1f15f81c..95e790fbd 100644
--- a/tests/dbus/call-cancellation.c
+++ b/tests/dbus/call-cancellation.c
@@ -174,7 +174,6 @@ main (int argc,
TpProxyPendingCall *pc;
gpointer tmp_obj;
- g_type_init ();
tp_tests_abort_after (10);
tp_debug_set_flags ("all");
diff --git a/tests/dbus/call-channel.c b/tests/dbus/call-channel.c
index 810c0f423..12bafce78 100644
--- a/tests/dbus/call-channel.c
+++ b/tests/dbus/call-channel.c
@@ -71,7 +71,6 @@ setup (Test *test,
guint not_a_media_type = 31337;
GQuark conn_features[] = { TP_CONNECTION_FEATURE_CONNECTED, 0 };
- g_type_init ();
tp_debug_set_flags ("all");
test->mainloop = g_main_loop_new (NULL, FALSE);
diff --git a/tests/dbus/channel-dispatch-operation.c b/tests/dbus/channel-dispatch-operation.c
index 90406cfc8..f5c39f28d 100644
--- a/tests/dbus/channel-dispatch-operation.c
+++ b/tests/dbus/channel-dispatch-operation.c
@@ -55,7 +55,6 @@ setup (Test *test,
{
DBusConnection *libdbus;
- g_type_init ();
tp_debug_set_flags ("all");
test->mainloop = g_main_loop_new (NULL, FALSE);
diff --git a/tests/dbus/channel-dispatcher.c b/tests/dbus/channel-dispatcher.c
index b789226aa..d3b466e03 100644
--- a/tests/dbus/channel-dispatcher.c
+++ b/tests/dbus/channel-dispatcher.c
@@ -27,7 +27,6 @@ static void
setup (Test *test,
gconstpointer data)
{
- g_type_init ();
tp_debug_set_flags ("all");
test->mainloop = g_main_loop_new (NULL, FALSE);
diff --git a/tests/dbus/channel-introspect.c b/tests/dbus/channel-introspect.c
index 072cf69e5..989dfde54 100644
--- a/tests/dbus/channel-introspect.c
+++ b/tests/dbus/channel-introspect.c
@@ -137,7 +137,6 @@ main (int argc,
GQuark some_features[] = { TP_CHANNEL_FEATURE_CORE,
TP_CHANNEL_FEATURE_CHAT_STATES, 0 };
- g_type_init ();
tp_tests_abort_after (10);
dbus = tp_tests_dbus_daemon_dup_or_die ();
diff --git a/tests/dbus/channel-manager-request-properties.c b/tests/dbus/channel-manager-request-properties.c
index 69aaa3913..71ce7701c 100644
--- a/tests/dbus/channel-manager-request-properties.c
+++ b/tests/dbus/channel-manager-request-properties.c
@@ -42,7 +42,6 @@ setup (Test *test,
gboolean ok;
gchar *name, *conn_path;
- g_type_init ();
tp_debug_set_flags ("all");
test->mainloop = g_main_loop_new (NULL, FALSE);
diff --git a/tests/dbus/channel-request.c b/tests/dbus/channel-request.c
index 7cb7ca0b5..13920194d 100644
--- a/tests/dbus/channel-request.c
+++ b/tests/dbus/channel-request.c
@@ -75,7 +75,6 @@ setup (Test *test,
{
DBusConnection *libdbus;
- g_type_init ();
tp_debug_set_flags ("all");
test->mainloop = g_main_loop_new (NULL, FALSE);
diff --git a/tests/dbus/cli-group.c b/tests/dbus/cli-group.c
index 82a138dac..59c007c42 100644
--- a/tests/dbus/cli-group.c
+++ b/tests/dbus/cli-group.c
@@ -496,7 +496,6 @@ main (int argc,
gchar *name;
tp_tests_abort_after (10);
- g_type_init ();
tp_debug_set_flags ("all");
dbus = tp_tests_dbus_daemon_dup_or_die ();
diff --git a/tests/dbus/client.c b/tests/dbus/client.c
index 9146f4f1e..3f442b8d9 100644
--- a/tests/dbus/client.c
+++ b/tests/dbus/client.c
@@ -27,7 +27,6 @@ static void
setup (Test *test,
gconstpointer data)
{
- g_type_init ();
tp_debug_set_flags ("all");
test->mainloop = g_main_loop_new (NULL, FALSE);
diff --git a/tests/dbus/cm-message.c b/tests/dbus/cm-message.c
index 2c0f56da4..3084d536c 100644
--- a/tests/dbus/cm-message.c
+++ b/tests/dbus/cm-message.c
@@ -22,7 +22,6 @@ static void
setup (Test *test,
gconstpointer data)
{
- g_type_init ();
tp_debug_set_flags ("all");
tp_tests_create_and_connect_conn (TP_TESTS_TYPE_SIMPLE_CONNECTION,
diff --git a/tests/dbus/cm.c b/tests/dbus/cm.c
index 3888277d2..ad4285475 100644
--- a/tests/dbus/cm.c
+++ b/tests/dbus/cm.c
@@ -131,7 +131,6 @@ setup (Test *test,
TpBaseConnectionManager *service_cm_as_base;
gboolean ok;
- g_type_init ();
tp_debug_set_flags ("all");
test->mainloop = g_main_loop_new (NULL, FALSE);
diff --git a/tests/dbus/connection-aliasing.c b/tests/dbus/connection-aliasing.c
index ddadab8d5..2572dc8fe 100644
--- a/tests/dbus/connection-aliasing.c
+++ b/tests/dbus/connection-aliasing.c
@@ -48,7 +48,6 @@ setup (Test *test,
GError *error = NULL;
GQuark features[] = { TP_CONNECTION_FEATURE_CONNECTED, 0 };
- g_type_init ();
tp_debug_set_flags ("all");
test->dbus = tp_tests_dbus_daemon_dup_or_die ();
@@ -153,8 +152,6 @@ int
main (int argc,
char **argv)
{
- g_type_init ();
-
tp_tests_abort_after (5);
g_test_init (&argc, &argv, NULL);
diff --git a/tests/dbus/connection-balance.c b/tests/dbus/connection-balance.c
index b247e1404..c80899661 100644
--- a/tests/dbus/connection-balance.c
+++ b/tests/dbus/connection-balance.c
@@ -202,7 +202,6 @@ setup (Test *test,
GQuark features[] = { TP_CONNECTION_FEATURE_CONNECTED, 0 };
GType conn_type = GPOINTER_TO_SIZE (data);
- g_type_init ();
tp_debug_set_flags ("all");
test->dbus = tp_tests_dbus_daemon_dup_or_die ();
@@ -383,8 +382,6 @@ int
main (int argc,
char **argv)
{
- g_type_init ();
-
tp_tests_abort_after (5);
g_test_init (&argc, &argv, NULL);
diff --git a/tests/dbus/connection-bug-18845.c b/tests/dbus/connection-bug-18845.c
index 88a308114..e76e62616 100644
--- a/tests/dbus/connection-bug-18845.c
+++ b/tests/dbus/connection-bug-18845.c
@@ -46,7 +46,6 @@ main (int argc,
DBusGProxy *proxy;
tp_tests_abort_after (10);
- g_type_init ();
invalidated_for_test.domain = TP_ERROR;
tp_debug_set_flags ("all");
diff --git a/tests/dbus/connection-error.c b/tests/dbus/connection-error.c
index 3d2e5613e..bf8ecaf8a 100644
--- a/tests/dbus/connection-error.c
+++ b/tests/dbus/connection-error.c
@@ -87,7 +87,6 @@ example_com_error_quark (void)
g_assert (sizeof (GQuark) <= sizeof (gsize));
- g_type_init ();
dbus_g_error_domain_register (domain, "com.example",
example_com_error_get_type ());
g_once_init_leave (&quark, domain);
@@ -116,7 +115,6 @@ global_setup (void)
done = TRUE;
- g_type_init ();
tp_debug_set_flags ("all");
tp_proxy_subclass_add_error_mapping (TP_TYPE_CONNECTION,
diff --git a/tests/dbus/connection-getinterfaces-failure.c b/tests/dbus/connection-getinterfaces-failure.c
index 4d3494a07..693feefcd 100644
--- a/tests/dbus/connection-getinterfaces-failure.c
+++ b/tests/dbus/connection-getinterfaces-failure.c
@@ -94,7 +94,6 @@ main (int argc,
gchar *conn_path;
tp_tests_abort_after (10);
- g_type_init ();
tp_debug_set_flags ("all");
mainloop = g_main_loop_new (NULL, FALSE);
dbus = tp_tests_dbus_daemon_dup_or_die ();
diff --git a/tests/dbus/connection-handles.c b/tests/dbus/connection-handles.c
index bab685f14..23244657c 100644
--- a/tests/dbus/connection-handles.c
+++ b/tests/dbus/connection-handles.c
@@ -294,7 +294,6 @@ main (int argc,
/* Setup */
tp_tests_abort_after (10);
- g_type_init ();
tp_debug_set_flags ("all");
dbus = tp_tests_dbus_daemon_dup_or_die ();
diff --git a/tests/dbus/connection-inject-bug16307.c b/tests/dbus/connection-inject-bug16307.c
index 87bd041d2..379653029 100644
--- a/tests/dbus/connection-inject-bug16307.c
+++ b/tests/dbus/connection-inject-bug16307.c
@@ -41,7 +41,6 @@ main (int argc,
TpConnection *conn;
tp_tests_abort_after (10);
- g_type_init ();
tp_debug_set_flags ("all");
mainloop = g_main_loop_new (NULL, FALSE);
dbus = tp_tests_dbus_daemon_dup_or_die ();
diff --git a/tests/dbus/connection-interests.c b/tests/dbus/connection-interests.c
index 7ffbda639..d5d703e43 100644
--- a/tests/dbus/connection-interests.c
+++ b/tests/dbus/connection-interests.c
@@ -148,7 +148,6 @@ setup (Test *test,
GError *error = NULL;
GQuark features[] = { TP_CONNECTION_FEATURE_CONNECTED, 0 };
- g_type_init ();
tp_debug_set_flags ("all");
test->dbus = tp_tests_dbus_daemon_dup_or_die ();
diff --git a/tests/dbus/connection.c b/tests/dbus/connection.c
index 51a887227..8ed18f620 100644
--- a/tests/dbus/connection.c
+++ b/tests/dbus/connection.c
@@ -57,7 +57,6 @@ setup (Test *test,
invalidated_for_test.domain = TP_ERROR;
- g_type_init ();
tp_debug_set_flags ("all");
test->dbus = tp_tests_dbus_daemon_dup_or_die ();
diff --git a/tests/dbus/contact-lists.c b/tests/dbus/contact-lists.c
index f072ef7e6..43ab26280 100644
--- a/tests/dbus/contact-lists.c
+++ b/tests/dbus/contact-lists.c
@@ -326,7 +326,6 @@ setup_pre_connect (
GError *error = NULL;
const gchar *account;
- g_type_init ();
tp_debug_set_flags ("all");
test->dbus = tp_tests_dbus_daemon_dup_or_die ();
test->main_loop = g_main_loop_new (NULL, FALSE);
@@ -2740,7 +2739,6 @@ int
main (int argc,
char **argv)
{
- g_type_init ();
tp_tests_abort_after (30);
tp_debug_set_flags ("all");
diff --git a/tests/dbus/contacts-bug-19101.c b/tests/dbus/contacts-bug-19101.c
index 77474e15e..debc35b9e 100644
--- a/tests/dbus/contacts-bug-19101.c
+++ b/tests/dbus/contacts-bug-19101.c
@@ -146,7 +146,6 @@ main (int argc,
/* Setup */
tp_tests_abort_after (10);
- g_type_init ();
tp_debug_set_flags ("all");
dbus = tp_tests_dbus_daemon_dup_or_die ();
diff --git a/tests/dbus/contacts-mixin.c b/tests/dbus/contacts-mixin.c
index 5e286c3df..c3146ed52 100644
--- a/tests/dbus/contacts-mixin.c
+++ b/tests/dbus/contacts-mixin.c
@@ -158,7 +158,6 @@ main (int argc,
/* Setup */
tp_tests_abort_after (10);
- g_type_init ();
tp_debug_set_flags ("all");
dbus = tp_tests_dbus_daemon_dup_or_die ();
diff --git a/tests/dbus/disconnection.c b/tests/dbus/disconnection.c
index bfa55cb2b..ef8ad11c8 100644
--- a/tests/dbus/disconnection.c
+++ b/tests/dbus/disconnection.c
@@ -164,7 +164,6 @@ main (int argc,
gboolean freed = FALSE;
tp_tests_abort_after (10);
- g_type_init ();
tp_debug_set_flags ("all");
freed_user_data = tp_intset_sized_new (N_DAEMONS);
diff --git a/tests/dbus/example-no-protocols.c b/tests/dbus/example-no-protocols.c
index 4a076f5e6..2d22acd0f 100644
--- a/tests/dbus/example-no-protocols.c
+++ b/tests/dbus/example-no-protocols.c
@@ -97,7 +97,6 @@ main (int argc,
gboolean saw_exited;
tp_tests_abort_after (5);
- g_type_init ();
tp_debug_set_flags ("all");
diff --git a/tests/dbus/file-transfer-channel.c b/tests/dbus/file-transfer-channel.c
index b93ac6eb3..be4c4ea29 100644
--- a/tests/dbus/file-transfer-channel.c
+++ b/tests/dbus/file-transfer-channel.c
@@ -585,7 +585,6 @@ main (int argc,
char **argv)
{
tp_tests_abort_after (10);
- g_type_init ();
tp_debug_set_flags ("all");
g_test_init (&argc, &argv, NULL);
diff --git a/tests/dbus/finalized-in-invalidated-handler.c b/tests/dbus/finalized-in-invalidated-handler.c
index 03f7d6635..0eab5797c 100644
--- a/tests/dbus/finalized-in-invalidated-handler.c
+++ b/tests/dbus/finalized-in-invalidated-handler.c
@@ -84,7 +84,6 @@ main (int argc,
TpHandle handle;
tp_tests_abort_after (10);
- g_type_init ();
tp_debug_set_flags ("all");
mainloop = g_main_loop_new (NULL, FALSE);
dbus = tp_tests_dbus_daemon_dup_or_die ();
diff --git a/tests/dbus/group-mixin.c b/tests/dbus/group-mixin.c
index 0b7a0a3a4..8943f4bef 100644
--- a/tests/dbus/group-mixin.c
+++ b/tests/dbus/group-mixin.c
@@ -526,7 +526,6 @@ main (int argc,
gchar *chan_path;
tp_tests_abort_after (10);
- g_type_init ();
tp_debug_set_flags ("all");
dbus = tp_tests_dbus_daemon_dup_or_die ();
diff --git a/tests/dbus/handle-repo.c b/tests/dbus/handle-repo.c
index ec8002486..500826fd1 100644
--- a/tests/dbus/handle-repo.c
+++ b/tests/dbus/handle-repo.c
@@ -101,7 +101,6 @@ test_handles (void)
int main (int argc, char **argv)
{
tp_tests_abort_after (10);
- g_type_init ();
test_handles ();
diff --git a/tests/dbus/handle-set.c b/tests/dbus/handle-set.c
index 4dc774b4e..4e9f9c007 100644
--- a/tests/dbus/handle-set.c
+++ b/tests/dbus/handle-set.c
@@ -27,7 +27,6 @@ main (int argc,
TpHandle h1, h2, h3, h4;
tp_tests_abort_after (10);
- g_type_init ();
repo = tp_tests_object_new_static_class (TP_TYPE_DYNAMIC_HANDLE_REPO,
"handle-type", TP_HANDLE_TYPE_CONTACT,
diff --git a/tests/dbus/invalidated-while-invoking-signals.c b/tests/dbus/invalidated-while-invoking-signals.c
index 93606449d..01a5f3029 100644
--- a/tests/dbus/invalidated-while-invoking-signals.c
+++ b/tests/dbus/invalidated-while-invoking-signals.c
@@ -65,7 +65,6 @@ main (int argc,
gchar *path;
tp_tests_abort_after (10);
- g_type_init ();
tp_debug_set_flags ("all");
mainloop = g_main_loop_new (NULL, FALSE);
dbus = tp_tests_dbus_daemon_dup_or_die ();
diff --git a/tests/dbus/long-connection-name.c b/tests/dbus/long-connection-name.c
index 8be0e20f5..ac2b38b12 100644
--- a/tests/dbus/long-connection-name.c
+++ b/tests/dbus/long-connection-name.c
@@ -43,7 +43,6 @@ main (int argc,
gchar *conn_path;
tp_tests_abort_after (10);
- g_type_init ();
dbus = tp_tests_dbus_daemon_dup_or_die ();
MYASSERT (strlen (LONG_ACCOUNT_IS_LONG) == 256, "");
diff --git a/tests/dbus/message-mixin.c b/tests/dbus/message-mixin.c
index 7f526ec19..8e46b41bb 100644
--- a/tests/dbus/message-mixin.c
+++ b/tests/dbus/message-mixin.c
@@ -219,7 +219,6 @@ main (int argc,
GHashTable *parameters;
tp_tests_abort_after (10);
- g_type_init ();
tp_debug_set_flags ("all");
dbus = tp_tests_dbus_daemon_dup_or_die ();
diff --git a/tests/dbus/params-cm.c b/tests/dbus/params-cm.c
index 0b7b761f5..91f370253 100644
--- a/tests/dbus/params-cm.c
+++ b/tests/dbus/params-cm.c
@@ -59,7 +59,6 @@ setup (Test *test,
TpBaseConnectionManager *service_cm_as_base;
gboolean ok;
- g_type_init ();
tp_debug_set_flags ("all");
test->mainloop = g_main_loop_new (NULL, FALSE);
diff --git a/tests/dbus/protocol-objects.c b/tests/dbus/protocol-objects.c
index b1c0fdaca..f33122d15 100644
--- a/tests/dbus/protocol-objects.c
+++ b/tests/dbus/protocol-objects.c
@@ -46,7 +46,6 @@ setup (Test *test,
TpBaseConnectionManager *service_cm_as_base;
gboolean ok;
- g_type_init ();
tp_debug_set_flags ("all");
test->mainloop = g_main_loop_new (NULL, FALSE);
diff --git a/tests/dbus/self-presence.c b/tests/dbus/self-presence.c
index c9ed4730a..2efa5fd0f 100644
--- a/tests/dbus/self-presence.c
+++ b/tests/dbus/self-presence.c
@@ -236,7 +236,6 @@ main (int argc,
/* Setup */
tp_tests_abort_after (10);
- g_type_init ();
tp_debug_set_flags ("all");
dbus = tp_tests_dbus_daemon_dup_or_die ();
diff --git a/tests/dbus/text-mixin.c b/tests/dbus/text-mixin.c
index b4f494e10..51bc6e1f6 100644
--- a/tests/dbus/text-mixin.c
+++ b/tests/dbus/text-mixin.c
@@ -94,7 +94,6 @@ main (int argc,
TpHandle handle;
tp_tests_abort_after (10);
- g_type_init ();
/* tp_debug_set_flags ("all"); */
dbus = tp_tests_dbus_daemon_dup_or_die ();
diff --git a/tests/dbus/text-respawn.c b/tests/dbus/text-respawn.c
index 46b99aa25..6de9f5b10 100644
--- a/tests/dbus/text-respawn.c
+++ b/tests/dbus/text-respawn.c
@@ -96,7 +96,6 @@ main (int argc,
TpHandle handle;
tp_tests_abort_after (10);
- g_type_init ();
/* tp_debug_set_flags ("all"); */
dbus = tp_tests_dbus_daemon_dup_or_die ();
diff --git a/tests/dbus/unsupported-interface.c b/tests/dbus/unsupported-interface.c
index 98da098ab..43c8523a3 100644
--- a/tests/dbus/unsupported-interface.c
+++ b/tests/dbus/unsupported-interface.c
@@ -37,7 +37,6 @@ static void
setup (Fixture *f,
gconstpointer data)
{
- g_type_init ();
tp_debug_set_flags ("all");
f->dbus = tp_tests_dbus_daemon_dup_or_die ();
diff --git a/tests/debug-domain.c b/tests/debug-domain.c
index 37ef41804..d4dfb29cb 100644
--- a/tests/debug-domain.c
+++ b/tests/debug-domain.c
@@ -54,8 +54,6 @@ int main (int argc, char **argv)
#ifdef ENABLE_DEBUG
TestItem i;
- g_type_init ();
-
tp_debug_set_flags ("all");
g_log_set_default_handler (handler, NULL);
diff --git a/tests/dtmf-player.c b/tests/dtmf-player.c
index 33eb99c52..1f00f611d 100644
--- a/tests/dtmf-player.c
+++ b/tests/dtmf-player.c
@@ -96,8 +96,6 @@ static void
setup (Fixture *f,
gconstpointer nil G_GNUC_UNUSED)
{
- g_type_init ();
-
f->dtmf_player = tp_dtmf_player_new ();
g_assert (f->dtmf_player != NULL);
diff --git a/tests/enums.c b/tests/enums.c
index 17ec4b46c..251050bbd 100644
--- a/tests/enums.c
+++ b/tests/enums.c
@@ -22,8 +22,6 @@ test_tp_contact_feature (void)
{
GEnumClass *klass;
- g_type_init ();
-
klass = g_type_class_ref (TP_TYPE_CONTACT_FEATURE);
g_assert (klass != NULL);
@@ -40,8 +38,6 @@ test_tp_dbus_error (void)
{
GEnumClass *klass;
- g_type_init ();
-
klass = g_type_class_ref (TP_TYPE_DBUS_ERROR);
g_assert (klass != NULL);
diff --git a/tests/gnio-util.c b/tests/gnio-util.c
index 6ac758a0d..1a5bd1dda 100644
--- a/tests/gnio-util.c
+++ b/tests/gnio-util.c
@@ -302,7 +302,6 @@ test_sockaddr_to_variant_abstract_unix (void)
int
main (int argc, char **argv)
{
- g_type_init ();
dbus_g_type_specialized_init ();
test_variant_to_sockaddr_ipv4 ();
diff --git a/tests/intset.c b/tests/intset.c
index f92af36a0..16301389c 100644
--- a/tests/intset.c
+++ b/tests/intset.c
@@ -63,8 +63,6 @@ int main (int argc, char **argv)
TpIntset *ab_symmdiff, *ab_expected_symmdiff;
GValue *value;
- g_type_init ();
-
g_assert (tp_intset_is_empty (set1));
g_assert_cmpuint (tp_intset_size (set1), ==, 0);
diff --git a/tests/lib/util.c b/tests/lib/util.c
index 6dd6dd4fd..d5751f4a3 100644
--- a/tests/lib/util.c
+++ b/tests/lib/util.c
@@ -84,8 +84,6 @@ start_dbus_session (void)
{
g_assert (test_dbus == NULL);
- g_type_init ();
-
g_test_dbus_unset ();
/* GLib 2.36 does not unset STARTER env variables but tp-glib are using them.
@@ -379,7 +377,6 @@ void
tp_tests_init (int *argc,
char ***argv)
{
- g_type_init ();
tp_tests_abort_after (10);
tp_debug_set_flags ("all");
diff --git a/tests/signal-connect-object.c b/tests/signal-connect-object.c
index 90a867724..fa1c9e5da 100644
--- a/tests/signal-connect-object.c
+++ b/tests/signal-connect-object.c
@@ -60,7 +60,6 @@ static void
setup (Test *test,
gconstpointer data)
{
- g_type_init ();
tp_debug_set_flags ("all");
test->caught = 0;
diff --git a/tests/util-cxx.cpp b/tests/util-cxx.cpp
index 3b2a6b577..b8b822e36 100644
--- a/tests/util-cxx.cpp
+++ b/tests/util-cxx.cpp
@@ -28,8 +28,6 @@ int main (int argc, char **argv)
GObject *o;
GHashTable *h;
- g_type_init ();
-
o = (GObject *) g_file_new_for_path ("/");
tp_clear_object (&o);
diff --git a/tests/util.c b/tests/util.c
index 1bf9533c6..3b0b7c952 100644
--- a/tests/util.c
+++ b/tests/util.c
@@ -297,8 +297,6 @@ int main (int argc, char **argv)
GPtrArray *ptrarray;
gchar *string;
- g_type_init ();
-
g_assert (!tp_strdiff (NULL, NULL));
g_assert (tp_strdiff ("badger", NULL));
g_assert (tp_strdiff (NULL, "badger"));