From 80b01dd8344c2469e943726769c5ec6b8fc53401 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 14 Sep 2021 21:41:48 -0400 Subject: Replace shared library malloc shim with explicit allocation testing The old approach was generally annoying to deal with sometimes, and not particularly portable. This replaces it by using the new custom allocator interface with unit tests that specifically check that failed allocation is handled properly. --- test/test_malloc.h | 16 ---------------- 1 file changed, 16 deletions(-) delete mode 100644 test/test_malloc.h (limited to 'test/test_malloc.h') diff --git a/test/test_malloc.h b/test/test_malloc.h deleted file mode 100644 index 7ebf944..0000000 --- a/test/test_malloc.h +++ /dev/null @@ -1,16 +0,0 @@ -// Copyright 2014-2020 David Robillard -// SPDX-License-Identifier: ISC - -#include "zix/attributes.h" - -#include - -void -test_malloc_init(void); - -void -test_malloc_reset(size_t fail_after); - -ZIX_PURE_API -size_t -test_malloc_get_n_allocs(void); -- cgit v1.2.1