[gjs/wip/xulrunner-1.9.3-rebase5: 3/26] tests: Call g_type_init
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs/wip/xulrunner-1.9.3-rebase5: 3/26] tests: Call g_type_init
- Date: Thu, 23 Sep 2010 00:04:17 +0000 (UTC)
commit 36e6d6bcbea498fd96c75c99c23d0944bf50e50c
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.
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]