tests: delete the valgrind logs if they're empty
authorLubomir Rintel <lkundrak@v3.sk>
Thu, 4 Jun 2015 10:30:30 +0000 (12:30 +0200)
committerLubomir Rintel <lkundrak@v3.sk>
Thu, 4 Jun 2015 12:29:10 +0000 (14:29 +0200)
tools/run-test-valgrind.sh

index 0cdada7..cd53306 100755 (executable)
@@ -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