From 4df461434edc665d662094282d21e0b2e34dabc6 Mon Sep 17 00:00:00 2001 From: Christine Caulfield Date: Wed, 6 Jul 2022 09:29:22 +0100 Subject: [PATCH] tests: Fix tests on FreeBSD-devel FreeBSD-devel can allocate more space than requested which causes the check to fail. So check for > allocated rather than == --- tests/check_ipc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/check_ipc.c b/tests/check_ipc.c index 17713208..9b0623e6 100644 --- a/tests/check_ipc.c +++ b/tests/check_ipc.c @@ -710,7 +710,7 @@ s1_connection_created(qb_ipcs_connection_t *c) } - ck_assert_int_eq(max, qb_ipcs_connection_get_buffer_size(c)); + ck_assert_int_le(max, qb_ipcs_connection_get_buffer_size(c)); } @@ -1703,7 +1703,7 @@ test_ipc_stress_test(void) ck_assert(conn != NULL); real_buf_size = qb_ipcc_get_buffer_size(conn); - ck_assert_int_eq(real_buf_size, max_size); + ck_assert_int_ge(real_buf_size, max_size); qb_log(LOG_DEBUG, "Testing %d iterations of EVENT msg passing.", num_stress_events);