[glib] Assert threads are created in test 642026
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] Assert threads are created in test 642026
- Date: Tue, 27 Dec 2016 19:47:21 +0000 (UTC)
commit e0976193272e6e850f8e81d9fd641a79cd22d6c5
Author: Sjoerd Simons <sjoerd simons collabora co uk>
Date: Tue Aug 9 15:55:04 2016 +0200
Assert threads are created in test 642026
We kept seeing the glib testsuite hanging on our CI system in the
testcase for 642026. After some digging it turned out the jenkins slave
was misconfigured and its task limit was too low.
Add an assertion that the test thread has been created to more easily
spot this error condition as opposed to the test simply hanging.
Signed-off-by: Sjoerd Simons <sjoerd simons collabora co uk>
https://bugzilla.gnome.org/show_bug.cgi?id=769672
glib/tests/642026.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/glib/tests/642026.c b/glib/tests/642026.c
index 05f9f25..140d459 100644
--- a/glib/tests/642026.c
+++ b/glib/tests/642026.c
@@ -64,6 +64,7 @@ testcase (void)
freed = 0;
t1 = g_thread_create (thread_func, NULL, TRUE, NULL);
+ g_assert (t1 != NULL);
/* wait for t1 to set up its thread-private data */
g_cond_wait (cond, mutex);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]