From 43366bb4eeee868bf44f15be220e0b16d77ddd34 Mon Sep 17 00:00:00 2001 From: David Gibson Date: Wed, 14 Nov 2018 16:13:30 +1100 Subject: 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 --- tests/run_tests.sh | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests') diff --git a/tests/run_tests.sh b/tests/run_tests.sh index bc2cc77..547aedc 100755 --- a/tests/run_tests.sh +++ b/tests/run_tests.sh @@ -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 -- cgit v1.1