diff options
Diffstat (limited to 'src/unit/test_std_allocator.c')
-rw-r--r-- | src/unit/test_std_allocator.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/unit/test_std_allocator.c b/src/unit/test_std_allocator.c new file mode 100644 index 0000000..e115952 --- /dev/null +++ b/src/unit/test_std_allocator.c @@ -0,0 +1,16 @@ +#include "../core/allocator.h" +#include "../core/std_allocator.h" +#include "./allocator_utils.h" + +#include "greatest.h" + +SUITE(std_allocator) { +#define RUN_WITH_STD_ALLOCATOR(test) \ + do { \ + SandAllocator a = sand_new_std_allocator(); \ + RUN_TEST1(test, &a); \ + } while(0); + + RUN_ALLOCATOR_TESTS(RUN_WITH_STD_ALLOCATOR); +#undef RUN_WITH_STD_ALLOCATOR +} |