From 41bf8913f51dafc26c898c0609f9e0fd3c907a90 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Mon, 19 Nov 2012 16:09:14 +0000 Subject: [PATCH 2/3] test-profile: actually initialize GLib, if required It's alarming how often the phrase "I'm amazed this ever worked" comes up while maintaining dbus-glib. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=40711 Signed-off-by: Simon McVittie --- test/core/test-profile.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/core/test-profile.c b/test/core/test-profile.c index 5701285..ac8870d 100644 --- a/test/core/test-profile.c +++ b/test/core/test-profile.c @@ -1084,6 +1084,10 @@ print_result (const ProfileRunVTable *vtable, int main (int argc, char *argv[]) { +#if (!GLIB_CHECK_VERSION (2, 35, 1)) + g_type_init (); +#endif + #ifndef TEST_PROFILE_DISABLED g_thread_init (NULL); dbus_g_thread_init (); -- 1.7.10.4