Browse Source

tests: Property count valgrind errors in wrapped tests

The logic in wrap_test() was effectively squashing valgrind errors into
the "FAIL" bucket rather than their own bucket as intended.  Correct it.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
main
David Gibson 6 years ago
parent
commit
43366bb4ee
  1. 3
      tests/run_tests.sh

3
tests/run_tests.sh

@ -88,6 +88,9 @@ wrap_test () { @@ -88,6 +88,9 @@ wrap_test () {
if [ "$ret" -gt 127 ]; then
signame=$(kill -l $((ret - 128)))
FAIL "Killed by SIG$signame"
elif [ "$ret" -eq $VGCODE ]; then
echo "VALGRIND ERROR"
exit $VGCODE
else
FAIL "Returned error code $ret"
fi

Loading…
Cancel
Save