Match width of ctest "Start xx: " line to line up with the end test line

This commit is contained in:
Zach Mullen 2009-10-05 10:20:52 -04:00
parent 940733997a
commit b304186bc5
3 changed files with 6 additions and 4 deletions

View File

@ -81,7 +81,7 @@ void cmCTestMultiProcessHandler::StartTestProcess(int test)
cmCTestRunTest* testRun = new cmCTestRunTest(this->TestHandler); cmCTestRunTest* testRun = new cmCTestRunTest(this->TestHandler);
testRun->SetIndex(test); testRun->SetIndex(test);
testRun->SetTestProperties(this->Properties[test]); testRun->SetTestProperties(this->Properties[test]);
if(testRun->StartTest()) if(testRun->StartTest(this->Total))
{ {
this->RunningTests.insert(testRun); this->RunningTests.insert(testRun);
} }

View File

@ -297,9 +297,11 @@ void cmCTestRunTest::MemCheckPostProcess()
//---------------------------------------------------------------------- //----------------------------------------------------------------------
// Starts the execution of a test. Returns once it has started // Starts the execution of a test. Returns once it has started
bool cmCTestRunTest::StartTest() bool cmCTestRunTest::StartTest(size_t total)
{ {
cmCTestLog(this->CTest, HANDLER_OUTPUT, " Start " cmCTestLog(this->CTest, HANDLER_OUTPUT, std::setw(2*getNumWidth(total) + 8)
<< "Start "
<< std::setw(getNumWidth(total))
<< this->TestProperties->Index << ": " << this->TestProperties->Index << ": "
<< this->TestProperties->Name << std::endl); << this->TestProperties->Name << std::endl);
this->ComputeArguments(); this->ComputeArguments();

View File

@ -46,7 +46,7 @@ public:
bool CheckOutput(); bool CheckOutput();
//launch the test process, return whether it started correctly //launch the test process, return whether it started correctly
bool StartTest(); bool StartTest(size_t total);
//capture and report the test results //capture and report the test results
bool EndTest(size_t completed, size_t total, bool started); bool EndTest(size_t completed, size_t total, bool started);
//Called by ctest -N to log the command string //Called by ctest -N to log the command string