From cdc2910103dd240a225b4f227b76c4056eb0a765 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Mon, 26 May 2008 05:57:09 +0000 Subject: [PATCH] Make tests work svn path=/trunk/; revision=6935 --- gio/ChangeLog | 4 ++++ gio/tests/Makefile.am | 1 + gio/tests/data-input-stream.c | 1 + gio/tests/data-output-stream.c | 1 + gio/tests/g-file-info.c | 1 + gio/tests/g-file.c | 1 + gio/tests/live-g-file.c | 1 + gio/tests/memory-input-stream.c | 1 + 8 files changed, 11 insertions(+) diff --git a/gio/ChangeLog b/gio/ChangeLog index 482e41d..6fe7412 100644 --- a/gio/ChangeLog +++ b/gio/ChangeLog @@ -1,5 +1,9 @@ 2008-05-26 Matthias Clasen + * tests/*: Make tests work + +2008-05-26 Matthias Clasen + * gio.symbols: Add g_memory_output_stream_get_data_size. 2008-05-25 Ross Burton diff --git a/gio/tests/Makefile.am b/gio/tests/Makefile.am index 6f3c650..8f2bb83 100644 --- a/gio/tests/Makefile.am +++ b/gio/tests/Makefile.am @@ -12,6 +12,7 @@ INCLUDES = \ noinst_PROGRAMS = $(TEST_PROGS) progs_ldadd = \ $(top_builddir)/glib/libglib-2.0.la \ + $(top_builddir)/gthread/libgthread-2.0.la \ $(top_builddir)/gobject/libgobject-2.0.la \ $(top_builddir)/gio/libgio-2.0.la diff --git a/gio/tests/data-input-stream.c b/gio/tests/data-input-stream.c index 6abc7c4..b979066 100644 --- a/gio/tests/data-input-stream.c +++ b/gio/tests/data-input-stream.c @@ -318,6 +318,7 @@ main (int argc, char *argv[]) { g_type_init (); + g_thread_init (0); g_test_init (&argc, &argv, NULL); g_test_add_func ("/data-input-stream/read-lines-LF", test_read_lines_LF); diff --git a/gio/tests/data-output-stream.c b/gio/tests/data-output-stream.c index 1a7e1ae..56edbfd 100644 --- a/gio/tests/data-output-stream.c +++ b/gio/tests/data-output-stream.c @@ -282,6 +282,7 @@ main (int argc, char *argv[]) { g_type_init (); + g_thread_init (0); g_test_init (&argc, &argv, NULL); g_test_add_func ("/data-input-stream/read-lines-LF", test_read_lines_LF); diff --git a/gio/tests/g-file-info.c b/gio/tests/g-file-info.c index d3ed5c9..edbd319 100644 --- a/gio/tests/g-file-info.c +++ b/gio/tests/g-file-info.c @@ -117,6 +117,7 @@ main (int argc, char *argv[]) { g_type_init (); + g_thread_init (0); g_test_init (&argc, &argv, NULL); g_test_add_func ("/g-file-info/test_g_file_info", test_g_file_info); diff --git a/gio/tests/g-file.c b/gio/tests/g-file.c index d512c93..2618631 100644 --- a/gio/tests/g-file.c +++ b/gio/tests/g-file.c @@ -507,6 +507,7 @@ main (int argc, char *argv[]) { g_type_init (); + g_thread_init (0); g_test_init (&argc, &argv, NULL); diff --git a/gio/tests/live-g-file.c b/gio/tests/live-g-file.c index 203fcb2..a5ece7f 100644 --- a/gio/tests/live-g-file.c +++ b/gio/tests/live-g-file.c @@ -1107,6 +1107,7 @@ main (int argc, char *argv[]) /* strip all gtester-specific args */ g_type_init (); + g_thread_init (0); g_test_init (&argc, &argv, NULL); /* no extra parameters specified, assume we're executed from glib test suite */ diff --git a/gio/tests/memory-input-stream.c b/gio/tests/memory-input-stream.c index 247613c..de3f661 100644 --- a/gio/tests/memory-input-stream.c +++ b/gio/tests/memory-input-stream.c @@ -70,6 +70,7 @@ main (int argc, char *argv[]) { g_type_init (); + g_thread_init (0); g_test_init (&argc, &argv, NULL); g_test_add_func ("/memory-input-stream/read-chunks", test_read_chunks); -- 2.7.4