[telepathy-gabble/master] Initialize GType in tests.
Will Thompson
will.thompson at collabora.co.uk
Fri Jun 19 03:34:23 PDT 2009
The debugging code now uses GType, so g_type_init (); needs to be called
in a few tests.
---
tests/test-base64.c | 4 ++++
tests/test-parse-message.c | 4 ++++
2 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/tests/test-base64.c b/tests/test-base64.c
index 2004fd7..53c62c5 100644
--- a/tests/test-base64.c
+++ b/tests/test-base64.c
@@ -4,6 +4,8 @@
#include <stdio.h>
#include <string.h>
+#include <glib-object.h>
+
#include "src/base64.h"
struct test {
@@ -46,6 +48,8 @@ main (void)
GString *tmp1, *tmp2;
struct test *t;
+ g_type_init ();
+
for (t = tests; t->str != NULL; t++)
{
if (t->len == 0)
diff --git a/tests/test-parse-message.c b/tests/test-parse-message.c
index 008babd..a0e8d03 100644
--- a/tests/test-parse-message.c
+++ b/tests/test-parse-message.c
@@ -3,6 +3,8 @@
#include <string.h>
+#include <glib-object.h>
+
#include "src/util.h"
#include "src/message-util.h"
@@ -294,6 +296,8 @@ test_google_offline (void)
int
main (void)
{
+ g_type_init ();
+
g_assert (test1 ());
g_assert (test2 ());
g_assert (test3 ());
--
1.5.6.5
More information about the telepathy-commits
mailing list