From 2c0981859eee38323c04537b68fb138ef986095f Mon Sep 17 00:00:00 2001 From: Charles Date: Thu, 14 Nov 2019 09:20:43 +0100 Subject: Added memory leaks check --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'README.md') diff --git a/README.md b/README.md index b52d972..e431a9f 100644 --- a/README.md +++ b/README.md @@ -31,6 +31,15 @@ It will generate random test according to the `-Wformat` flag of gcc. - `> python3 generate.py -n [number of tests]`: generate n test - `> python3 generate.py -h`: show all available options +## Memory leaks check + +You have to install [valgrind](http://valgrind.org/) with [brew](https://brew.sh/), +[here](https://stackoverflow.com/questions/35775102) is a nice thread to install it +locally if you don't have root access. You can then run `> brew install valgrind`. + +- `> make check_leaks`: run valgrind on a test (without the test themself). +- `> make check_leaks_verbose`: add `--leak-check=full` to valgrind. + ## Pro tips This doesnt handle timeout, so if your `ft_printf` goes in an infinite loop, -- cgit