diff options
author | Kyle Edwards <kyle.edwards@kitware.com> | 2023-08-10 20:44:29 (GMT) |
---|---|---|
committer | Kyle Edwards <kyle.edwards@kitware.com> | 2023-08-10 20:46:25 (GMT) |
commit | 3f5a5a5856790107bba5cad6d9d45d1170b986f1 (patch) | |
tree | 5fb996f3b8ba14174d44bbf023f4097a4db16d79 /Source/CTest/cmCTestRunTest.h | |
parent | 5ed03aa07a831cc51fefaddac2316d24a62d3137 (diff) | |
download | CMake-3f5a5a5856790107bba5cad6d9d45d1170b986f1.zip CMake-3f5a5a5856790107bba5cad6d9d45d1170b986f1.tar.gz CMake-3f5a5a5856790107bba5cad6d9d45d1170b986f1.tar.bz2 |
cmCTestRunTest::StartFailure(): Add total argument
This function was being called when TotalNumberOfTests hadn't been
initialized, resulting in undefined output. It's not clear why this
was never apparent until now. Accept a total argument to ensure it's
initialized.
Diffstat (limited to 'Source/CTest/cmCTestRunTest.h')
-rw-r--r-- | Source/CTest/cmCTestRunTest.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/CTest/cmCTestRunTest.h b/Source/CTest/cmCTestRunTest.h index fed7296..34f23c4 100644 --- a/Source/CTest/cmCTestRunTest.h +++ b/Source/CTest/cmCTestRunTest.h @@ -68,7 +68,7 @@ public: size_t completed); static void StartFailure(std::unique_ptr<cmCTestRunTest> runner, - std::string const& output, + size_t total, std::string const& output, std::string const& detail); struct EndTestResult @@ -86,7 +86,8 @@ public: void ComputeWeightedCost(); - void StartFailure(std::string const& output, std::string const& detail); + void StartFailure(size_t total, std::string const& output, + std::string const& detail); cmCTest* GetCTest() const { return this->CTest; } |