diff options
author | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2012-11-19 16:09:14 +0000 |
---|---|---|
committer | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2012-12-04 17:41:53 +0000 |
commit | fac9b965fb65352641521d380b1428702015012b (patch) | |
tree | 2c6af8c8f90f21088fd8237a6ef6cbd8b8b427b6 | |
parent | e4a163431f2cd26959c9f46e573fc200c5b9fd3d (diff) | |
download | dbus-glib-fac9b965fb65352641521d380b1428702015012b.tar.gz |
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 <simon.mcvittie@collabora.co.uk>
Reviewed-by: Dan Williams <dcbw@redhat.com>
-rw-r--r-- | test/core/test-profile.c | 4 |
1 files changed, 4 insertions, 0 deletions
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 (); |