summaryrefslogtreecommitdiff
path: root/src/unit/test_std_allocator.c
blob: 20464dbcc0cb92611e97602bf259c63f3239a709 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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_get_std_allocator();    \
		RUN_TEST1(test, &a);                           \
	} while(0);

	RUN_ALLOCATOR_TESTS(RUN_WITH_STD_ALLOCATOR);
#undef RUN_WITH_STD_ALLOCATOR
}