Commit 290beadb authored by Dafydd Harries's avatar Dafydd Harries

valgrind.sh: use valgrind return code rather than non-emptiness of report to determine pass

darcs-hash:20070213130110-c9803-fd2a52d01c6fb24570fae988953717c19783418f.gz
parent 6589590a
#!/bin/sh #!/bin/sh
set -e
export G_SLICE=always-malloc export G_SLICE=always-malloc
export G_DEBUG=gc-friendly export G_DEBUG=gc-friendly
...@@ -11,7 +10,8 @@ report=`libtool --mode=execute valgrind \ ...@@ -11,7 +10,8 @@ report=`libtool --mode=execute valgrind \
--error-exitcode=1 \ --error-exitcode=1 \
$1 2>&1` $1 2>&1`
if echo "$report" | grep -q ==; then #if echo "$report" | grep -q ==; then
if test $? != 0; then
echo "$report" echo "$report"
exit 1 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