aboutsummaryrefslogtreecommitdiffstats
path: root/test/testpools.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/testpools.c')
-rw-r--r--test/testpools.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/testpools.c b/test/testpools.c
index 6515b256f..6ff669227 100644
--- a/test/testpools.c
+++ b/test/testpools.c
@@ -65,7 +65,7 @@ static void *null_provider(size_t size) {
static void pools1_setup(void) {
- chPoolInit(&mp1, THD_WA_SIZE(THREADS_STACK_SIZE), NULL);
+ chPoolObjectInit(&mp1, THD_WA_SIZE(THREADS_STACK_SIZE), NULL);
}
static void pools1_execute(void) {
@@ -93,7 +93,7 @@ static void pools1_execute(void) {
test_assert(4, chPoolAlloc(&mp1) == NULL, "list not empty");
/* Covering the case where a provider is unable to return more memory.*/
- chPoolInit(&mp1, 16, null_provider);
+ chPoolObjectInit(&mp1, 16, null_provider);
test_assert(5, chPoolAlloc(&mp1) == NULL, "provider returned memory");
}