Add valgrind testing and fix valgrind errors

This commit is contained in:
2023-09-17 22:55:08 -03:00
parent f45418cdd9
commit f34980c67b
11 changed files with 40 additions and 23 deletions

View File

@ -0,0 +1,8 @@
#!/usr/bin/bash
# Could make more complicated and more similar to test.sh, but only the most complicated test case is fine for now
valgrind --leak-check=full \
--show-leak-kinds=definite \
--track-origins=yes \
./../build/Assignment1 < pdf2.txt