summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJan Schmidt <thaytan@noraisin.net>2009-04-18 13:54:08 +0100
committerJan Schmidt <thaytan@noraisin.net>2009-04-18 14:05:16 +0100
commit06a4b80918eae60f34d3bae453b6f527ae4d09d3 (patch)
treec94dcd37cab49a63a87c822d9f2739a8416b840e /tests
parentdfb375daa137350b7a2800c236ef822e3f2d3b2c (diff)
check: Check whether threads are already initialised before g_thread_init()
Diffstat (limited to 'tests')
-rw-r--r--tests/check/elements/souphttpsrc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/check/elements/souphttpsrc.c b/tests/check/elements/souphttpsrc.c
index ba20ab9c..01123699 100644
--- a/tests/check/elements/souphttpsrc.c
+++ b/tests/check/elements/souphttpsrc.c
@@ -441,7 +441,8 @@ souphttpsrc_suite (void)
TCase *tc_chain, *tc_internet;
g_type_init ();
- g_thread_init (NULL);
+ if (!g_thread_supported ())
+ g_thread_init (NULL);
s = suite_create ("souphttpsrc");
tc_chain = tcase_create ("general");