diff options
Diffstat (limited to 'test/test_allocator.c')
-rw-r--r-- | test/test_allocator.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test_allocator.c b/test/test_allocator.c index 9ecbfa0..2677624 100644 --- a/test/test_allocator.c +++ b/test/test_allocator.c @@ -122,7 +122,7 @@ static void test_failing_allocator(void) { ZixFailingAllocator allocator = zix_failing_allocator(); - allocator.n_remaining = 0; + zix_failing_allocator_reset(&allocator, 0); assert(!zix_malloc(&allocator.base, 16U)); assert(!zix_calloc(&allocator.base, 16U, 1U)); |