Bug 416700: 0 or 0% leaks results in bloatdiff dying, r=coop

This commit is contained in:
ajschult%verizon.net 2008-02-12 05:11:16 +00:00
Родитель d27cacd407
Коммит e16b9a89a3
1 изменённых файлов: 1 добавлений и 2 удалений

Просмотреть файл

@ -183,10 +183,9 @@ print "Previous file: $OLDFILE\n";
print "----------------------------------------------leaks------leaks%------bloat------bloat%\n"; print "----------------------------------------------leaks------leaks%------bloat------bloat%\n";
if (! $newMap{"TOTAL"} or if (! $newMap{"TOTAL"} or
! $newMap{"TOTAL"}{leaked} or
! $newMap{"TOTAL"}{leakPercent} or
! $newMap{"TOTAL"}{bloat} or ! $newMap{"TOTAL"}{bloat} or
! $newMap{"TOTAL"}{bloatPercent}) { ! $newMap{"TOTAL"}{bloatPercent}) {
# it's OK if leaked or leakPercent are 0 (in fact, that would be good)
print "\nERROR - unable to calculate bloat/leak data.\n\n"; print "\nERROR - unable to calculate bloat/leak data.\n\n";
print "HINT - Did your test run complete successfully?\n"; print "HINT - Did your test run complete successfully?\n";
print "HINT - Are you pointing at the right log files?\n\n"; print "HINT - Are you pointing at the right log files?\n\n";