aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src
Commit message (Collapse)AuthorAgeFilesLines
* Implement realloc and add realloc rounds to random testThomas Vanbesien2026-02-271-1/+103
| | | | | | realloc returns the same pointer if the chunk is large enough, otherwise malloc + memcpy + free. The random test now verifies data integrity after resizing across all three categories.
* Add randomized correctness testThomas Vanbesien2026-02-271-0/+176
| | | | | | | test_random allocates N blocks per category (TINY/SMALL/LARGE) with random sizes, fills them with a deterministic pattern, and verifies the data. Run with system malloc and LD_PRELOAD to compare output. Seed and count are parameterized via argv.
* Add show_alloc_mem and test_show, rename test to test_preloadThomas Vanbesien2026-02-272-0/+25
| | | | | | Implement show_alloc_mem() to print all zones and allocations by ascending address. Add test_show binary that links directly against libft_malloc.so to exercise it.
* Initial scaffold: Makefile, stub malloc/free/realloc, test harnessThomas Vanbesien2026-02-221-0/+46
Build system produces libft_malloc_$HOSTTYPE.so shared library with Libft (NOMALLOC=1) as dependency. Stub functions print their name and return NULL. Test runner compares system malloc vs LD_PRELOAD output using write(2) to avoid stdio interference.