FenceSyncCase::IterateResult FenceSyncCase::iterate (void)
{
- TestLog& log = m_testCtx.getLog();
- std::vector<float> vertices;
- bool testOk = true;
+ TestLog& log = m_testCtx.getLog();
+ std::vector<float> 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);
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!");
}
}
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;
}