From: Matthias Clasen Date: Thu, 3 May 2007 04:48:10 +0000 (+0000) Subject: Stop unused threads before the last test, to make the test terminate X-Git-Tag: GLIB_2_13_1~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9d3c408fbe48c714de6141b9c2929cd835ee968a;p=platform%2Fupstream%2Fglib.git Stop unused threads before the last test, to make the test terminate * tests/threadpool-test.c: Stop unused threads before the last test, to make the test terminate reliably. svn path=/trunk/; revision=5477 --- diff --git a/ChangeLog b/ChangeLog index 1ceacd5..49176aa 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2007-05-02 Matthias Clasen + * tests/threadpool-test.c: Stop unused threads before + the last test, to make the test terminate reliably. + * NEWS: Updates 2007-05-02 Marco Barisione diff --git a/tests/threadpool-test.c b/tests/threadpool-test.c index b5a517d..889fee9 100644 --- a/tests/threadpool-test.c +++ b/tests/threadpool-test.c @@ -405,6 +405,9 @@ test_check_start_and_stop (gpointer user_data) test_thread_sort (TRUE); break; case 6: + test_thread_stop_unused (); + break; + case 7: test_thread_idle_time (); break; default: @@ -434,7 +437,7 @@ test_check_start_and_stop (gpointer user_data) G_UNLOCK (thread_counter_sort); } - if (test_number == 6) { + if (test_number == 7) { guint idle; idle = g_thread_pool_get_num_unused_threads ();