From: Jarkko Pöyry Date: Tue, 7 Apr 2015 03:38:36 +0000 (-0700) Subject: Close LogSection properly in fence_sync tests. X-Git-Tag: upstream/0.1.0~1786^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3e7f70ab65c0c3e797b1bcc73b874b113219c110;p=platform%2Fupstream%2FVK-GL-CTS.git Close LogSection properly in fence_sync tests. Bug: 20095021 Change-Id: Iaf8879ff5a9c4c92efdc6f442d0878ca3a3202e3 --- diff --git a/modules/gles3/functional/es3fSyncTests.cpp b/modules/gles3/functional/es3fSyncTests.cpp index 11b10e0..8f9c0d0 100644 --- a/modules/gles3/functional/es3fSyncTests.cpp +++ b/modules/gles3/functional/es3fSyncTests.cpp @@ -170,12 +170,12 @@ void FenceSyncCase::deinit (void) FenceSyncCase::IterateResult FenceSyncCase::iterate (void) { - TestLog& log = m_testCtx.getLog(); - std::vector vertices; - bool testOk = true; + TestLog& log = m_testCtx.getLog(); + std::vector vertices; + bool testOk = true; - std::string header = "Case iteration " + de::toString(m_iterNdx+1) + " / " + de::toString(NUM_CASE_ITERATIONS); - log << TestLog::Section(header, header); + std::string header = "Case iteration " + de::toString(m_iterNdx+1) + " / " + de::toString(NUM_CASE_ITERATIONS); + const tcu::ScopedLogSection section (log, header, header); enableLogging(true); @@ -231,7 +231,7 @@ FenceSyncCase::IterateResult FenceSyncCase::iterate (void) case GL_TIMEOUT_EXPIRED: log << TestLog::Message << "// GL_TIMEOUT_EXPIRED" << TestLog::EndMessage; break; case GL_CONDITION_SATISFIED: log << TestLog::Message << "// GL_CONDITION_SATISFIED" << TestLog::EndMessage; break; case GL_WAIT_FAILED: log << TestLog::Message << "// GL_WAIT_FAILED" << TestLog::EndMessage; testOk = false; break; - default: log << TestLog::EndSection; TCU_FAIL("// Illegal return value!"); + default: TCU_FAIL("// Illegal return value!"); } } @@ -260,11 +260,10 @@ FenceSyncCase::IterateResult FenceSyncCase::iterate (void) if (!testOk) { m_testCtx.setTestResult(QP_TEST_RESULT_FAIL, "Fail"); - log << TestLog::EndSection; return STOP; } - log << TestLog::Message << "// Sync objects created and deleted successfully." << TestLog::EndMessage << TestLog::EndSection; + log << TestLog::Message << "// Sync objects created and deleted successfully." << TestLog::EndMessage; return (++m_iterNdx < NUM_CASE_ITERATIONS) ? CONTINUE : STOP; }