| 32 |
32 |
| 33 #include <errno.h> |
33 #include <errno.h> |
| 34 |
34 |
| 35 static unsigned test_mempool_destructor_called; |
35 static unsigned test_mempool_destructor_called; |
| 36 |
36 |
| 37 static void test_mempool_destructor(cx_attr_unused void *mem) { |
37 static void test_mempool_destructor(CX_UNUSED void *mem) { |
| 38 test_mempool_destructor_called++; |
38 test_mempool_destructor_called++; |
| 39 } |
39 } |
| 40 |
40 |
| 41 static void test_mempool_destructor2(void *data, cx_attr_unused void *mem) { |
41 static void test_mempool_destructor2(void *data, CX_UNUSED void *mem) { |
| 42 int *ctr = data; |
42 int *ctr = data; |
| 43 *ctr = *ctr + 1; |
43 *ctr = *ctr + 1; |
| 44 } |
44 } |
| 45 |
45 |
| 46 CX_TEST(test_mempool_create) { |
46 CX_TEST(test_mempool_create) { |