diff options
| author | Charles <sircharlesaze@gmail.com> | 2019-11-14 09:20:43 +0100 |
|---|---|---|
| committer | Charles <sircharlesaze@gmail.com> | 2019-11-14 10:29:56 +0100 |
| commit | 2c0981859eee38323c04537b68fb138ef986095f (patch) | |
| tree | ba92914acd26585b2a7d13fb8724340f704225ac /README.md | |
| parent | bbca9dc057781fee887a5110877b988c777e8eb0 (diff) | |
| download | ft_printf_test-2c0981859eee38323c04537b68fb138ef986095f.tar.gz ft_printf_test-2c0981859eee38323c04537b68fb138ef986095f.tar.bz2 ft_printf_test-2c0981859eee38323c04537b68fb138ef986095f.zip | |
Added memory leaks check
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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, |
