mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-11 23:16:14 +01:00
Drop g_thread_init from tests
This is not needed anymore.
This commit is contained in:
parent
9ea9471d26
commit
c173c0beb4
@ -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 \
|
||||
|
@ -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 ();
|
||||
|
@ -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 ();
|
||||
|
@ -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 ();
|
||||
|
@ -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 ();
|
||||
|
@ -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 ();
|
||||
|
@ -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 ();
|
||||
|
@ -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 ();
|
||||
|
Loading…
Reference in New Issue
Block a user