Commit 54f62193 authored by Dafydd Harries's avatar Dafydd Harries

valgrind.sh: fail if memory was definitely leaked

darcs-hash:20070213150736-c9803-2332896e51ee0d04d0e0814b568da5e68ea15af8.gz
parent 708857c3
......@@ -4,7 +4,6 @@ export G_SLICE=always-malloc
export G_DEBUG=gc-friendly
report=`libtool --mode=execute valgrind \
-q \
--leak-check=full \
--show-reachable=no \
--error-exitcode=1 \
......@@ -15,3 +14,11 @@ if test $? != 0; then
echo "$report"
exit 1
fi
if echo "$report" | grep -q "definitely lost"; then
if ! echo "$report" | grep -q "definitely lost: 0 bytes"; then
echo "$report"
exit 1
fi
fi
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment