From a48d92d525fd8963b119d09021686199ec4eb3f3 Mon Sep 17 00:00:00 2001 From: Lubomir Rintel Date: Thu, 4 Jun 2015 12:30:30 +0200 Subject: [PATCH] tests: delete the valgrind logs if they're empty (cherry picked from commit df0676ab00673a76d814762d30b4fab708812b75) --- tools/run-test-valgrind.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/run-test-valgrind.sh b/tools/run-test-valgrind.sh index 0cdada7b6b..cd53306b4c 100755 --- a/tools/run-test-valgrind.sh +++ b/tools/run-test-valgrind.sh @@ -50,6 +50,9 @@ if [ $RESULT -ne 0 -a $RESULT -ne 77 ]; then echo Files without debugging symbols: $UNRESOLVED >&2 fi fi + exit $RESULT fi +find -name "$LOGFILE" -size 0 -delete + exit $RESULT