aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2018-11-14 16:13:30 +1100
committerDavid Gibson <david@gibson.dropbear.id.au>2018-11-14 16:13:30 +1100
commit43366bb4eeee868bf44f15be220e0b16d77ddd34 (patch)
tree1710b5a7450c63696128cb364266d795306cfe3a
parent5062516fb8cb52e2a8739695a27abc533da9abcd (diff)
downloaddtc-43366bb4eeee868bf44f15be220e0b16d77ddd34.zip
dtc-43366bb4eeee868bf44f15be220e0b16d77ddd34.tar.gz
dtc-43366bb4eeee868bf44f15be220e0b16d77ddd34.tar.bz2
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>
-rwxr-xr-xtests/run_tests.sh3
1 files changed, 3 insertions, 0 deletions
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