diff options
| author | Egor Yusov <egor.yusov@gmail.com> | 2018-02-17 20:58:17 +0000 |
|---|---|---|
| committer | Egor Yusov <egor.yusov@gmail.com> | 2018-02-17 20:58:17 +0000 |
| commit | ec3e81b7a7be77836ac52dc6168aa5ac4c498217 (patch) | |
| tree | 6feacc63f6f2cfa51463831a1ea7399f8de9be81 /Tests/TestApp/src/MTResourceCreationTest.cpp | |
| parent | Fixed few compiler warnings (diff) | |
| download | DiligentEngine-ec3e81b7a7be77836ac52dc6168aa5ac4c498217.tar.gz DiligentEngine-ec3e81b7a7be77836ac52dc6168aa5ac4c498217.zip | |
Added test result reporting
Diffstat (limited to 'Tests/TestApp/src/MTResourceCreationTest.cpp')
| -rw-r--r-- | Tests/TestApp/src/MTResourceCreationTest.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Tests/TestApp/src/MTResourceCreationTest.cpp b/Tests/TestApp/src/MTResourceCreationTest.cpp index f202ba4..22813cb 100644 --- a/Tests/TestApp/src/MTResourceCreationTest.cpp +++ b/Tests/TestApp/src/MTResourceCreationTest.cpp @@ -42,7 +42,8 @@ static const char g_ShaderSource[] = "} \n" ; -MTResourceCreationTest::MTResourceCreationTest(IRenderDevice *pDevice, IDeviceContext *pContext, Uint32 NumThreads) : +MTResourceCreationTest::MTResourceCreationTest(IRenderDevice *pDevice, IDeviceContext *pContext, Uint32 NumThreads) : + UnitTestBase("Multithreaded resource creation"), m_pDevice(pDevice), m_pContext(pContext) { @@ -243,5 +244,8 @@ void MTResourceCreationTest::StopThreads() m_bStopThreadsFlag = true; for(auto &t : m_Threads) t.join(); - LOG_INFO_MESSAGE("MTResourceCreationTest: Buffers created: ", m_NumBuffersCreated, " Textures created: ", m_NumTexturesCreated, " PSO Created: ", m_NumPSOCreated); + + std::stringstream infoss; + infoss << "Buffers created: " << m_NumBuffersCreated << " Textures created: " << m_NumTexturesCreated << " PSO Created: " << m_NumPSOCreated; + SetStatus(m_Threads.empty() ? TestResult::Skipped : TestResult::Succeeded, infoss.str().c_str()); } |
