From: Alexander Köplinger Date: Fri, 6 Nov 2015 16:35:31 +0000 (+0100) Subject: Don't print the "Some tests failed" message when _failCount is 0 X-Git-Tag: accepted/tizen/base/20180629.140029~6148^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1e5fe229b0f62225a5ec45fbf90d5d8f690d1b94;p=platform%2Fupstream%2Fcoreclr.git Don't print the "Some tests failed" message when _failCount is 0 --- diff --git a/tests/src/GC/Stress/Framework/ReliabilityFramework.cs b/tests/src/GC/Stress/Framework/ReliabilityFramework.cs index b308b22..bd6e898 100644 --- a/tests/src/GC/Stress/Framework/ReliabilityFramework.cs +++ b/tests/src/GC/Stress/Framework/ReliabilityFramework.cs @@ -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;