Skip to content

Commit

Permalink
tests: Fix tests on FreeBSD-devel (#469)
Browse files Browse the repository at this point in the history
FreeBSD-devel can allocate more space than requested which causes
the check to fail. So check for >= allocated rather than ==
  • Loading branch information
chrissie-c authored Jul 7, 2022
1 parent e407874 commit 8325d84
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/check_ipc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));

}

Expand Down Expand Up @@ -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);

Expand Down

0 comments on commit 8325d84

Please sign in to comment.