aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorCharles <sircharlesaze@gmail.com>2019-11-14 09:20:43 +0100
committerCharles <sircharlesaze@gmail.com>2019-11-14 10:29:56 +0100
commit2c0981859eee38323c04537b68fb138ef986095f (patch)
treeba92914acd26585b2a7d13fb8724340f704225ac /README.md
parentbbca9dc057781fee887a5110877b988c777e8eb0 (diff)
downloadft_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.md9
1 files changed, 9 insertions, 0 deletions
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,