blob: 05d1fb5d861096778d14dad3c1a652c7d8d3969b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#!/usr/bin/env bash
CFLAGS=-ggdb3 make valgrind-out.txt
printf "\n___RESULTS:___\n";
if grep -q 'ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)' valgrind-out.txt; then
echo "No Memory leaks";
else
echo "Memory leaks: " && tail valgrind-out.txt;
exit 1;
fi
# vim: ft=sh
|