summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2010-09-20 11:25:17 -0400
committerColin Walters <walters@verbum.org>2010-09-23 13:34:39 -0400
commit0aa0d5077f482894df95f7b9d641fcf946f671f4 (patch)
treea545cab48df6d7d56cdf6d3a07d066e1ca94b60e
parent426e3a9f23c994376f8c032b09ed11fcd1eb94f4 (diff)
downloadgjs-0aa0d5077f482894df95f7b9d641fcf946f671f4.tar.gz
tests: Call g_type_init
Might as well do this here instead of having random tests do it; we link to GObject anyways. https://bugzilla.gnome.org/show_bug.cgi?id=630413
-rw-r--r--test/gjs-tests.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/gjs-tests.c b/test/gjs-tests.c
index 84123234..d75cf47f 100644
--- a/test/gjs-tests.c
+++ b/test/gjs-tests.c
@@ -23,6 +23,7 @@
#include <config.h>
#include <glib.h>
+#include <glib-object.h>
#include <util/crash.h>
#include "test.h"
@@ -35,6 +36,8 @@ int
main(int argc,
char **argv)
{
+ g_type_init ();
+
gjs_crash_after_timeout(60*7); /* give the unit tests 7 minutes to complete */
gjs_init_sleep_on_crash();