|
27 | 27 | #include "test.h" |
28 | 28 |
|
29 | 29 | /*----------------------------------------------------------------------------*/ |
30 | | -/* Tests for pool_new */ |
| 30 | +/* Tests for 'pool_new' */ |
31 | 31 |
|
32 | 32 | TEST_DECL(pool_new_basic) { |
33 | 33 | Pool* pool = pool_new(10, sizeof(void*)); |
@@ -64,7 +64,7 @@ TEST_DECL(pool_new_single_chunk) { |
64 | 64 | } |
65 | 65 |
|
66 | 66 | /*----------------------------------------------------------------------------*/ |
67 | | -/* Tests for pool_alloc */ |
| 67 | +/* Tests for 'pool_alloc' */ |
68 | 68 |
|
69 | 69 | TEST_DECL(pool_alloc_basic) { |
70 | 70 | Pool* pool; |
@@ -165,7 +165,7 @@ TEST_DECL(pool_alloc_write_data) { |
165 | 165 | } |
166 | 166 |
|
167 | 167 | /*----------------------------------------------------------------------------*/ |
168 | | -/* Tests for pool_free */ |
| 168 | +/* Tests for 'pool_free' */ |
169 | 169 |
|
170 | 170 | TEST_DECL(pool_free_basic) { |
171 | 171 | Pool* pool; |
@@ -266,7 +266,7 @@ TEST_DECL(pool_free_out_of_order) { |
266 | 266 | } |
267 | 267 |
|
268 | 268 | /*----------------------------------------------------------------------------*/ |
269 | | -/* Tests for pool_expand */ |
| 269 | +/* Tests for 'pool_expand' */ |
270 | 270 |
|
271 | 271 | TEST_DECL(pool_expand_basic) { |
272 | 272 | Pool* pool = pool_new(2, sizeof(void*)); |
@@ -346,7 +346,7 @@ TEST_DECL(pool_expand_preserves_allocated) { |
346 | 346 | } |
347 | 347 |
|
348 | 348 | /*----------------------------------------------------------------------------*/ |
349 | | -/* Tests for pool_destroy */ |
| 349 | +/* Tests for 'pool_destroy' */ |
350 | 350 |
|
351 | 351 | TEST_DECL(pool_destroy_null) { |
352 | 352 | pool_destroy(NULL); |
@@ -452,6 +452,9 @@ TEST_DECL(large_pool) { |
452 | 452 | pool_destroy(pool); |
453 | 453 | } |
454 | 454 |
|
| 455 | +/*----------------------------------------------------------------------------*/ |
| 456 | +/* Preprocessor-specific tests */ |
| 457 | + |
455 | 458 | #if defined(LIBPOOL_NO_ALIGNMENT) |
456 | 459 | TEST_DECL(pool_new_small_chunk) { |
457 | 460 | /* Should not be able to create pools with chunks smaller than a pointer */ |
|
0 commit comments