diff --git a/tests/test-menu-parser.c b/tests/test-menu-parser.c
index 7e6beed2c4b4f2d33d472fe6f77fcf93a7ac577e..43138db59919daa8ef428d026c3a4882db216b41 100644
--- a/tests/test-menu-parser.c
+++ b/tests/test-menu-parser.c
@@ -221,7 +221,10 @@ main (int    argc,
   gchar            *relative_filename;
   gint              result = EXIT_SUCCESS;
 
+#if !GLIB_CHECK_VERSION (2, 36, 0)
+  /* Initialize the type system */
   g_type_init ();
+#endif
 
 #if !GLIB_CHECK_VERSION(2,32,0)
   if (!g_thread_supported ())
diff --git a/tests/test-menu-spec.c b/tests/test-menu-spec.c
index ae0f2eab990cf259ee409a9de30172a20c0a429f..ad272720580bc7af8ec08ed6660063dba758a1b0 100644
--- a/tests/test-menu-spec.c
+++ b/tests/test-menu-spec.c
@@ -119,8 +119,10 @@ main (int    argc,
 
   g_set_prgname ("test-menu-spec");
 
+#if !GLIB_CHECK_VERSION (2, 36, 0)
   /* Initialize the type system */
   g_type_init ();
+#endif
 
   /* Try to get the root menu */
   menu = garcon_menu_new_applications ();