diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2008-09-22 18:04:13 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2008-09-22 18:04:13 (GMT) |
commit | 43fe0d3978a81b74be42c0e975bdfe0092778b48 (patch) | |
tree | ea9ef04f8c3cf88521ed08cdbfe7e52dfe4405ea /Source/CTest/cmCTestTestHandler.cxx | |
parent | ae9f9e6994c430d697387bb005616bda4a9c09b8 (diff) | |
download | CMake-43fe0d3978a81b74be42c0e975bdfe0092778b48.zip CMake-43fe0d3978a81b74be42c0e975bdfe0092778b48.tar.gz CMake-43fe0d3978a81b74be42c0e975bdfe0092778b48.tar.bz2 |
ENH: add max width option to ctest ouptut
Diffstat (limited to 'Source/CTest/cmCTestTestHandler.cxx')
-rw-r--r-- | Source/CTest/cmCTestTestHandler.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/CTest/cmCTestTestHandler.cxx b/Source/CTest/cmCTestTestHandler.cxx index 83d882b..f8084a9 100644 --- a/Source/CTest/cmCTestTestHandler.cxx +++ b/Source/CTest/cmCTestTestHandler.cxx @@ -644,8 +644,9 @@ void cmCTestTestHandler::ProcessOneTest(cmCTestTestProperties *it, cmCTestLog(this->CTest, HANDLER_OUTPUT, "Testing"); } cmCTestLog(this->CTest, HANDLER_OUTPUT, " "); - std::string outname = testname; - outname.resize(30, ' '); + const int maxTestNameWidth = this->CTest->GetMaxTestNameWidth(); + std::string outname = testname + " "; + outname.resize(maxTestNameWidth, '.'); *this->LogFile << cnt << "/" << tmsize << " Testing: " << testname << std::endl; |