summaryrefslogtreecommitdiffstats
path: root/Source/CTest/cmCTestRunTest.cxx
diff options
context:
space:
mode:
authorMichael Wegner <michael_wegner@apple.com>2018-09-08 22:36:00 (GMT)
committerBrad King <brad.king@kitware.com>2018-09-25 12:20:57 (GMT)
commit62fbe5002aa23c7591e325e622e62a2d1ed789be (patch)
tree5a865631c9d43f6c8768f08b9d7d83e4d6ff12da /Source/CTest/cmCTestRunTest.cxx
parent02c5091c905964b529020070b4b24616d8a3fbd8 (diff)
downloadCMake-62fbe5002aa23c7591e325e622e62a2d1ed789be.zip
CMake-62fbe5002aa23c7591e325e622e62a2d1ed789be.tar.gz
CMake-62fbe5002aa23c7591e325e622e62a2d1ed789be.tar.bz2
cmCTestRunTest: Thread number of completed tests through start APIs
Diffstat (limited to 'Source/CTest/cmCTestRunTest.cxx')
-rw-r--r--Source/CTest/cmCTestRunTest.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/Source/CTest/cmCTestRunTest.cxx b/Source/CTest/cmCTestRunTest.cxx
index 57b12f1..36604a5 100644
--- a/Source/CTest/cmCTestRunTest.cxx
+++ b/Source/CTest/cmCTestRunTest.cxx
@@ -334,7 +334,7 @@ bool cmCTestRunTest::EndTest(size_t completed, size_t total, bool started)
return passed || skipped;
}
-bool cmCTestRunTest::StartAgain()
+bool cmCTestRunTest::StartAgain(size_t completed)
{
if (!this->RunAgain) {
return false;
@@ -349,7 +349,7 @@ bool cmCTestRunTest::StartAgain()
return true;
}
- this->StartTest(this->TotalNumberOfTests);
+ this->StartTest(completed, this->TotalNumberOfTests);
return true;
}
@@ -429,9 +429,10 @@ void cmCTestRunTest::StartFailure(std::string const& output)
}
// Starts the execution of a test. Returns once it has started
-bool cmCTestRunTest::StartTest(size_t total)
+bool cmCTestRunTest::StartTest(size_t completed, size_t total)
{
this->TotalNumberOfTests = total; // save for rerun case
+ static_cast<void>(completed);
cmCTestLog(this->CTest, HANDLER_OUTPUT,
std::setw(2 * getNumWidth(total) + 8)
<< "Start "