| 1 | #include "mem/slab/tests/test_internal.h" |
|---|---|
| 2 | |
| 3 | TEST_DECLARE_SMOKE(slab, demand_growth) { |
| 4 | size_t count = 500; |
| 5 | void *ptrs[count]; |
| 6 | |
| 7 | for (size_t i = 0; i < count; i++) { |
| 8 | ptrs[i] = kmalloc(512); |
| 9 | TEST_ASSERT_NONNULL(ptrs[i]); |
| 10 | } |
| 11 | |
| 12 | for (size_t i = 0; i < count; i++) { |
| 13 | kfree(ptrs[i]); |
| 14 | } |
| 15 | |
| 16 | return TEST_SUCCESS; |
| 17 | } |
| 18 |