Drop g_thread_init from tests

This is not needed anymore.
This commit is contained in:
Matthias Clasen 2012-04-02 07:59:23 -04:00
parent 9ea9471d26
commit c173c0beb4
8 changed files with 2 additions and 14 deletions

View File

@ -6,11 +6,10 @@ INCLUDES = \
$(GLIB_DEBUG_FLAGS)
libglib = $(top_builddir)/glib/libglib-2.0.la
libgthread = $(top_builddir)/gthread/libgthread-2.0.la
libgmodule = $(top_builddir)/gmodule/libgmodule-2.0.la
libgobject = $(top_builddir)/gobject/libgobject-2.0.la
LDADD = $(libglib) $(libgobject) $(libgthread) $(G_THREAD_LIBS)
LDADD = $(libglib) $(libgobject)
test_programs = \
closures \

View File

@ -241,7 +241,6 @@ main (int argc,
GTest *object;
guint i;
g_thread_init (NULL);
g_print ("START: %s\n", argv[0]);
g_log_set_always_fatal (G_LOG_LEVEL_WARNING | G_LOG_LEVEL_CRITICAL | g_log_set_always_fatal (G_LOG_FATAL_MASK));
g_type_init ();

View File

@ -117,7 +117,6 @@ main (int argc, char **argv)
GArray *test_threads;
const guint n_threads = 5;
g_thread_init (NULL);
g_print ("START: %s\n", argv[0]);
g_log_set_always_fatal (G_LOG_LEVEL_WARNING | G_LOG_LEVEL_CRITICAL | g_log_set_always_fatal (G_LOG_FATAL_MASK));
g_type_init ();

View File

@ -101,7 +101,6 @@ main (int argc, char **argv)
gint i;
GTest *test;
g_thread_init (NULL);
g_print ("START: %s\n", argv[0]);
g_log_set_always_fatal (G_LOG_LEVEL_WARNING | G_LOG_LEVEL_CRITICAL | g_log_set_always_fatal (G_LOG_FATAL_MASK));
g_type_init ();

View File

@ -194,7 +194,6 @@ main (int argc, char **argv)
GArray *test_threads;
const gint n_threads = 5;
g_thread_init (NULL);
g_print ("START: %s\n", argv[0]);
g_log_set_always_fatal (G_LOG_LEVEL_WARNING | G_LOG_LEVEL_CRITICAL | g_log_set_always_fatal (G_LOG_FATAL_MASK));
g_type_init ();

View File

@ -178,7 +178,6 @@ main (int argc, char **argv)
gint i;
GTest *test;
g_thread_init (NULL);
g_print ("START: %s\n", argv[0]);
g_log_set_always_fatal (G_LOG_LEVEL_WARNING | G_LOG_LEVEL_CRITICAL | g_log_set_always_fatal (G_LOG_FATAL_MASK));
g_type_init ();

View File

@ -159,8 +159,6 @@ main (int argc, char **argv)
GArray *test_threads;
const gint n_threads = 5;
g_thread_init (NULL);
g_print ("START: %s\n", argv[0]);
g_log_set_always_fatal (G_LOG_LEVEL_WARNING | G_LOG_LEVEL_CRITICAL | g_log_set_always_fatal (G_LOG_FATAL_MASK));
g_type_init ();

View File

@ -98,9 +98,6 @@ my_test_class_init (GTestClass * klass)
parent_class = g_type_class_ref (G_TYPE_OBJECT);
if (!g_thread_supported ())
g_thread_init (NULL);
gobject_class->dispose = my_test_dispose;
gobject_class->set_property = my_test_set_property;
gobject_class->get_property = my_test_get_property;
@ -239,7 +236,6 @@ main (int argc, char **argv)
GArray *test_threads;
const gint n_threads = 1;
g_thread_init (NULL);
g_print ("START: %s\n", argv[0]);
g_log_set_always_fatal (G_LOG_LEVEL_WARNING | G_LOG_LEVEL_CRITICAL | g_log_set_always_fatal (G_LOG_FATAL_MASK));
g_type_init ();