aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src/test_show.c
diff options
context:
space:
mode:
authorThomas Vanbesien <tvanbesi@proton.me>2026-02-27 12:39:03 +0100
committerThomas Vanbesien <tvanbesi@proton.me>2026-02-27 12:39:03 +0100
commit9d2ca1ee92a13d6e276d74536ebf295f2331dc08 (patch)
tree62ec50e236d6ff6586f948fd8940d4e7f7a94788 /tests/src/test_show.c
parentc950a0a70d37f962bbef66221ff0a23cad450195 (diff)
downloadmalloc-9d2ca1ee92a13d6e276d74536ebf295f2331dc08.tar.gz
malloc-9d2ca1ee92a13d6e276d74536ebf295f2331dc08.zip
Add comments to test programs, replace custom atoi with libcHEADmaster
Clarify purpose of helper functions and label the allocate/verify/free phases in _s_test_category and _s_test_realloc. Remove _s_atoi in favor of stdlib atoi.
Diffstat (limited to 'tests/src/test_show.c')
-rw-r--r--tests/src/test_show.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/src/test_show.c b/tests/src/test_show.c
index e5e7dca..877d39e 100644
--- a/tests/src/test_show.c
+++ b/tests/src/test_show.c
@@ -8,6 +8,7 @@
int
main (void)
{
+ /* One allocation per category: TINY, TINY, SMALL, LARGE. */
void *a = malloc (42);
void *b = malloc (100);
void *c = malloc (500);