summaryrefslogtreecommitdiffstats
path: root/Tests/TestApp/src/SmartPointerTest.cpp
diff options
context:
space:
mode:
authorEgor Yusov <egor.yusov@gmail.com>2018-02-17 20:58:17 +0000
committerEgor Yusov <egor.yusov@gmail.com>2018-02-17 20:58:17 +0000
commitec3e81b7a7be77836ac52dc6168aa5ac4c498217 (patch)
tree6feacc63f6f2cfa51463831a1ea7399f8de9be81 /Tests/TestApp/src/SmartPointerTest.cpp
parentFixed few compiler warnings (diff)
downloadDiligentEngine-ec3e81b7a7be77836ac52dc6168aa5ac4c498217.tar.gz
DiligentEngine-ec3e81b7a7be77836ac52dc6168aa5ac4c498217.zip
Added test result reporting
Diffstat (limited to 'Tests/TestApp/src/SmartPointerTest.cpp')
-rw-r--r--Tests/TestApp/src/SmartPointerTest.cpp5
1 files changed, 4 insertions, 1 deletions
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)
{