mirror of
https://github.com/Kitware/CMake.git
synced 2026-03-13 12:59:55 -05:00
BUG: Fix displaying of percentage
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user