[glib/wip/freebsd-thread-pool-free] tests: GThreadPool free-function is not reliably called on FreeBSD yet
- From: Simon McVittie <smcv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/wip/freebsd-thread-pool-free] tests: GThreadPool free-function is not reliably called on FreeBSD yet
- Date: Thu, 5 Aug 2021 13:34:44 +0000 (UTC)
commit 48e6ff3e01509f62b71167b7b2fec282f7651653
Author: Simon McVittie <smcv collabora com>
Date: Thu Aug 5 12:46:13 2021 +0100
tests: GThreadPool free-function is not reliably called on FreeBSD yet
This new feature in 2.69.0 does not appear to be reliable on the FreeBSD
CI runners. Disable this part of the test while it's investigated,
so that we can use CI as an acceptance gate for unrelated branches again.
Signed-off-by: Simon McVittie <smcv collabora com>
glib/tests/thread-pool.c | 6 ++++++
1 file changed, 6 insertions(+)
---
diff --git a/glib/tests/thread-pool.c b/glib/tests/thread-pool.c
index 50a72a632..27a8c1a9e 100644
--- a/glib/tests/thread-pool.c
+++ b/glib/tests/thread-pool.c
@@ -194,7 +194,13 @@ test_thread_pool_full (gconstpointer shared_first)
g_assert_true (success);
g_thread_pool_free (pool, TRUE, TRUE);
+
+#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
+ if (!free_func_called)
+ g_test_incomplete ("GThreadPool free-function not called");
+#else
g_assert_true (free_func_called);
+#endif
}
int
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]