From a86803cdaefbc907e971d32de8d22c0d72744d4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Fri, 29 Jun 2012 08:18:32 +0000 Subject: [PATCH] dump logs on failure --- tests/test.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/test.sh b/tests/test.sh index 89a688b..0e8be98 100755 --- a/tests/test.sh +++ b/tests/test.sh @@ -7,12 +7,14 @@ if [ "$VALGRIND" != "" ]; then if ! grep -q 'ERROR SUMMARY: 0 error' $log; then echo "Fail in $NAME $1 checking detected by Valgrind" echo "$log Valgrind log file moved to $TEMPDIR/badlogs" + cat $log mv $log $TEMPDIR/badlogs exit 1 fi if grep -q 'LEAK SUMMARY' $log; then echo "Memory leak in $NAME $1 checking detected by Valgrind" echo "$log Valgrind log file moved to $TEMPDIR/badlogs" + cat $log mv $log $TEMPDIR/badlogs exit 1 fi