gtester-report: cope with binaries with no test cases
authorRobert Bragg <robert@linux.intel.com>
Thu, 6 May 2010 14:46:00 +0000 (15:46 +0100)
committerRobert Bragg <robert@linux.intel.com>
Sun, 9 May 2010 15:28:32 +0000 (16:28 +0100)
commit03b5db44779c54947c3801609a42b2d2801b5a97
treea48cf975d521e9404e13a928f3fea79d78c3e406
parent7ca2e000546733446f737ec8fe425dd17218eada
gtester-report: cope with binaries with no test cases

It's possible that a given binary may conditionally decided not to run
any test cases (e.g. since they are all slow but -m=quick is currently
in use) In this case the xml may contain <testbinary> nodes with no
<testcase> children. This was resulting in a divide by zero when
calculating the green → red color interpolation.

https://bugzilla.gnome.org/show_bug.cgi?id=617914
glib/gtester-report