Make tests work

svn path=/trunk/; revision=6935
This commit is contained in:
Matthias Clasen 2008-05-26 05:57:09 +00:00
parent eb5889df59
commit cdc2910103
8 changed files with 11 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2008-05-26 Matthias Clasen <mclasen@redhat.com>
* tests/*: Make tests work
2008-05-26 Matthias Clasen <mclasen@redhat.com> 2008-05-26 Matthias Clasen <mclasen@redhat.com>
* gio.symbols: Add g_memory_output_stream_get_data_size. * gio.symbols: Add g_memory_output_stream_get_data_size.

View File

@ -12,6 +12,7 @@ INCLUDES = \
noinst_PROGRAMS = $(TEST_PROGS) noinst_PROGRAMS = $(TEST_PROGS)
progs_ldadd = \ progs_ldadd = \
$(top_builddir)/glib/libglib-2.0.la \ $(top_builddir)/glib/libglib-2.0.la \
$(top_builddir)/gthread/libgthread-2.0.la \
$(top_builddir)/gobject/libgobject-2.0.la \ $(top_builddir)/gobject/libgobject-2.0.la \
$(top_builddir)/gio/libgio-2.0.la $(top_builddir)/gio/libgio-2.0.la

View File

@ -318,6 +318,7 @@ main (int argc,
char *argv[]) char *argv[])
{ {
g_type_init (); g_type_init ();
g_thread_init (0);
g_test_init (&argc, &argv, NULL); g_test_init (&argc, &argv, NULL);
g_test_add_func ("/data-input-stream/read-lines-LF", test_read_lines_LF); g_test_add_func ("/data-input-stream/read-lines-LF", test_read_lines_LF);

View File

@ -282,6 +282,7 @@ main (int argc,
char *argv[]) char *argv[])
{ {
g_type_init (); g_type_init ();
g_thread_init (0);
g_test_init (&argc, &argv, NULL); g_test_init (&argc, &argv, NULL);
g_test_add_func ("/data-input-stream/read-lines-LF", test_read_lines_LF); g_test_add_func ("/data-input-stream/read-lines-LF", test_read_lines_LF);

View File

@ -117,6 +117,7 @@ main (int argc,
char *argv[]) char *argv[])
{ {
g_type_init (); g_type_init ();
g_thread_init (0);
g_test_init (&argc, &argv, NULL); g_test_init (&argc, &argv, NULL);
g_test_add_func ("/g-file-info/test_g_file_info", test_g_file_info); g_test_add_func ("/g-file-info/test_g_file_info", test_g_file_info);

View File

@ -507,6 +507,7 @@ main (int argc,
char *argv[]) char *argv[])
{ {
g_type_init (); g_type_init ();
g_thread_init (0);
g_test_init (&argc, &argv, NULL); g_test_init (&argc, &argv, NULL);

View File

@ -1107,6 +1107,7 @@ main (int argc, char *argv[])
/* strip all gtester-specific args */ /* strip all gtester-specific args */
g_type_init (); g_type_init ();
g_thread_init (0);
g_test_init (&argc, &argv, NULL); g_test_init (&argc, &argv, NULL);
/* no extra parameters specified, assume we're executed from glib test suite */ /* no extra parameters specified, assume we're executed from glib test suite */

View File

@ -70,6 +70,7 @@ main (int argc,
char *argv[]) char *argv[])
{ {
g_type_init (); g_type_init ();
g_thread_init (0);
g_test_init (&argc, &argv, NULL); g_test_init (&argc, &argv, NULL);
g_test_add_func ("/memory-input-stream/read-chunks", test_read_chunks); g_test_add_func ("/memory-input-stream/read-chunks", test_read_chunks);