[gjs/wip/xulrunner-1.9.3-rebase4: 1/16] tests: Call g_type_init



commit 0762b786a34932d8a8c5c0147b6f79a0b1871245
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]