[gjs] tests: Call g_type_init
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs] tests: Call g_type_init
- Date: Thu, 23 Sep 2010 18:16:30 +0000 (UTC)
commit 0aa0d5077f482894df95f7b9d641fcf946f671f4
Author: Colin Walters <walters verbum org>
Date: Mon Sep 20 11:25:17 2010 -0400
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
test/gjs-tests.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/test/gjs-tests.c b/test/gjs-tests.c
index 8412323..d75cf47 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();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]