diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2005-06-22 14:54:19 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2005-06-22 14:54:19 (GMT) |
commit | 1823e78d5cd68948bdfec5c18718f47126aabe07 (patch) | |
tree | 5e2e75a83dcc84821e70bea50c65599de62777d9 /Source/CTest/cmCTestTestHandler.cxx | |
parent | cba6b7334056e55869c37cbbd2143c2478751ac4 (diff) | |
download | CMake-1823e78d5cd68948bdfec5c18718f47126aabe07.zip CMake-1823e78d5cd68948bdfec5c18718f47126aabe07.tar.gz CMake-1823e78d5cd68948bdfec5c18718f47126aabe07.tar.bz2 |
BUG: Fix displaying of percentage
Diffstat (limited to 'Source/CTest/cmCTestTestHandler.cxx')
-rw-r--r-- | Source/CTest/cmCTestTestHandler.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/CTest/cmCTestTestHandler.cxx b/Source/CTest/cmCTestTestHandler.cxx index 173f9b7..368272a 100644 --- a/Source/CTest/cmCTestTestHandler.cxx +++ b/Source/CTest/cmCTestTestHandler.cxx @@ -425,7 +425,7 @@ int cmCTestTestHandler::ProcessHandler() { percent = 99; } - cmCTestLog(m_CTest, HANDLER_OUTPUT, std::endl << std::setprecision(0) << percent << "% tests passed, " + cmCTestLog(m_CTest, HANDLER_OUTPUT, std::endl << static_cast<int>(percent + .5) << "% tests passed, " << failed.size() << " tests failed out of " << total << std::endl); //fprintf(stderr,"\n%.0f%% tests passed, %i tests failed out of %i\n", // percent, int(failed.size()), total); |