r20754: Simplify code for calculating total number of failed tests.