summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2004-01-22 16:10:03 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2004-01-22 16:10:03 (GMT)
commitc1ba581da4c7724984ba60377337a7fb523840b0 (patch)
tree8b7c597299d8328a973b8b2b8b7341924abdfe54 /Source
parentfad0651d8487943256adba84976950b4ce0d3107 (diff)
downloadCMake-c1ba581da4c7724984ba60377337a7fb523840b0.zip
CMake-c1ba581da4c7724984ba60377337a7fb523840b0.tar.gz
CMake-c1ba581da4c7724984ba60377337a7fb523840b0.tar.bz2
BUG: If at least one test fails, the percent cannot be greater than 99
Diffstat (limited to 'Source')
-rw-r--r--Source/cmCTest.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmCTest.cxx b/Source/cmCTest.cxx
index 7c53378..b4fbaa8 100644
--- a/Source/cmCTest.cxx
+++ b/Source/cmCTest.cxx
@@ -2132,6 +2132,10 @@ int cmCTest::TestDirectory(bool memcheck)
}
float percent = float(passed.size()) * 100.0f / total;
+ if ( failed.size() > 0 && percent > 99)
+ {
+ percent = 99;
+ }
fprintf(stderr,"\n%.0f%% tests passed, %i tests failed out of %i\n",
percent, int(failed.size()), total);