GNOME Bugzilla – Bug 617914
[PATCH] gtester-report: cope with binaries with no test cases
Last modified: 2010-05-09 19:32:34 UTC
Created attachment 160444 [details] [review] 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.
Comment on attachment 160444 [details] [review] gtester-report: cope with binaries with no test cases Looks good to me.
ok thanks; I've pushed to master as: commit 03b5db44779c54947c3801609a42b2d2801b5a97 Author: Robert Bragg <robert@linux.intel.com> Date: Thu May 6 15:46:00 2010 +0100 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