summaryrefslogtreecommitdiff
path: root/src/unit/test_std_allocator.c
blob: e1159521ab33ad6d514d4b841fbde09f394e5d50 (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_new_std_allocator();    \
		RUN_TEST1(test, &a);                           \
	} while(0);

	RUN_ALLOCATOR_TESTS(RUN_WITH_STD_ALLOCATOR);
#undef RUN_WITH_STD_ALLOCATOR
}