diff --git a/test/buf_parse_test.c b/test/buf_parse_test.c
index 3fa8a01..77711a7 100644
--- a/test/buf_parse_test.c
+++ b/test/buf_parse_test.c
@@ -253,7 +253,7 @@
buf_init_1(&buf, (test)); \
TEST_EQ(buf_parse_list(&buf, &dest), strlen(test)); \
buf_clean(&buf); \
- list_delete(dest); \
+ list_delete_all(dest); \
test_context(NULL); \
} while (0)
diff --git a/test/compare_test.c b/test/compare_test.c
index a915585..f6cdafd 100644
--- a/test/compare_test.c
+++ b/test/compare_test.c
@@ -22,8 +22,8 @@
s_list *tmp_b = (b); \
test_context("compare_list(" # a ", " # b ") -> " # expected); \
TEST_EQ(compare_list(tmp_a, tmp_b), (expected)); \
- list_delete(tmp_a); \
- list_delete(tmp_b); \
+ list_delete_all(tmp_a); \
+ list_delete_all(tmp_b); \
} while (0)
#define COMPARE_TEST_TAG(a, b, expected) \
diff --git a/test/list_test.c b/test/list_test.c
index b16f4b9..ee5f60e 100644
--- a/test/list_test.c
+++ b/test/list_test.c
@@ -23,7 +23,7 @@
s_list *list_test; \
test_context("list_1(" # test ")"); \
TEST_ASSERT((list_test = list_1(test))); \
- list_delete(list_test); \
+ list_delete_all(list_test); \
test_context(NULL); \
} while (0)
@@ -36,7 +36,7 @@
TEST_EQ(list_inspect(list_test, &str_result), &str_result); \
TEST_STRNCMP(str_result.ptr.p, (expected), str_result.size); \
str_clean(&str_result); \
- list_delete(list_test); \
+ list_delete_all(list_test); \
test_context(NULL); \
} while (0)