From e153be0be2fb8df6656292daab3fa59963c76737 Mon Sep 17 00:00:00 2001 From: 3gg <3gg@shellblade.net> Date: Tue, 13 Feb 2024 17:51:51 -0800 Subject: Let memory allocators trap by default when attempting to allocate beyond capacity. --- mempool/test/mempool_test.c | 1 + 1 file changed, 1 insertion(+) (limited to 'mempool/test') diff --git a/mempool/test/mempool_test.c b/mempool/test/mempool_test.c index d5ed1ea..6c48a2a 100644 --- a/mempool/test/mempool_test.c +++ b/mempool/test/mempool_test.c @@ -67,6 +67,7 @@ TEST_CASE(mempool_fill_then_free) { TEST_CASE(mempool_allocate_beyond_max_size) { test_pool pool; mempool_make(&pool); + mempool_enable_traps(&pool, false); // Fully allocate the pool. for (int i = 0; i < NUM_BLOCKS; ++i) { -- cgit v1.2.3