From ec3e81b7a7be77836ac52dc6168aa5ac4c498217 Mon Sep 17 00:00:00 2001 From: Egor Yusov Date: Sat, 17 Feb 2018 12:58:17 -0800 Subject: Added test result reporting --- Tests/TestApp/src/SmartPointerTest.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Tests/TestApp/src/SmartPointerTest.cpp') diff --git a/Tests/TestApp/src/SmartPointerTest.cpp b/Tests/TestApp/src/SmartPointerTest.cpp index 59cbae8..9ae9fc7 100644 --- a/Tests/TestApp/src/SmartPointerTest.cpp +++ b/Tests/TestApp/src/SmartPointerTest.cpp @@ -245,7 +245,9 @@ SmartPointerTest::~SmartPointerTest() t.join(); auto NumIterations = NumThreadInterations; - LOG_INFO_MESSAGE("SmartPointerTest: performed ", m_NumTestsPerformed, " concurrency tests with ", NumIterations, " iterations each"); + std::stringstream infoss; + infoss << "Performed " << m_NumTestsPerformed << " concurrency tests with " << NumIterations << " iterations each"; + SetStatus(TestResult::Succeeded, infoss.str().c_str()); } void SmartPointerTest::RunConcurrencyTest() @@ -281,6 +283,7 @@ void SmartPointerTest::RunConcurrencyTest() SmartPointerTest::SmartPointerTest() : + UnitTestBase("Smart pointer test"), m_pSharedObject(nullptr), m_NumThreadsCompleted(0) { -- cgit v1.2.3