Take numWaived in to account when considering if run was ok, patch also
add result.numWaived to the total number of tests, otherwise we hit
following assert when running with waiver:
cts-runner: glcTestRunner.cpp:829: Unknown function:
Assertion `result.numExecuted == result.numPassed + result.numFailed +
result.numNotSupported + result.numWarnings' failed.
Components: Framework, OpenGL
VK-GL-CTS issue: 2631
Affects:
cts-runner
Change-Id: Iac776fd1174e5461c455282cecca208f0322358d
Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
// Collect results.
// \note NotSupported is treated as pass.
const tcu::TestRunStatus& result = m_curSession->getResult();
- bool isOk =
- result.numExecuted == (result.numPassed + result.numNotSupported + result.numWarnings) && result.isComplete;
+ bool isOk = result.numFailed == 0 && result.isComplete;
- DE_ASSERT(result.numExecuted == result.numPassed + result.numFailed + result.numNotSupported + result.numWarnings);
+ DE_ASSERT(result.numExecuted == result.numPassed + result.numFailed + result.numNotSupported + result.numWarnings + result.numWaived);
m_sessionsExecuted += 1;
(isOk ? m_sessionsPassed : m_sessionsFailed) += 1;