Don't print the "Some tests failed" message when _failCount is 0
authorAlexander Köplinger <alex.koeplinger@outlook.com>
Fri, 6 Nov 2015 16:35:31 +0000 (17:35 +0100)
committerAlexander Köplinger <alex.koeplinger@outlook.com>
Mon, 16 Nov 2015 19:44:26 +0000 (20:44 +0100)
tests/src/GC/Stress/Framework/ReliabilityFramework.cs

index b308b22..bd6e898 100644 (file)
@@ -500,7 +500,7 @@ public class ReliabilityFramework
                 _logger.CloseLog();
             }
 
-            if ((testSet.PercentPassIsPass != -1 && ((_failCount * 100) / _testsRanCount) < (100 - testSet.PercentPassIsPass)))
+            if ((testSet.PercentPassIsPass != -1 && _failCount > 0 && ((_failCount * 100) / _testsRanCount) < (100 - testSet.PercentPassIsPass)))
             {
                 Console.WriteLine("Some tests failed, but below the fail percent ({0} ran, {1} failed, perecent={2})", _testsRanCount, _failCount, testSet.PercentPassIsPass);
                 _totalSuccess = true;