Lines Matching refs:m_testCtx
50 : m_testCtx (testCtx)
168 m_caseExecutor->deinitTestPackage(m_testCtx);
176 if (!std::string(m_testCtx.getCommandLine().getServerAddress()).empty())
177 m_caseExecutor->reportDurations(m_testCtx, std::string(testPackage->getName()), duration, m_groupsDurationTime);
181 if (!std::string(m_testCtx.getCommandLine().getServerAddress()).empty())
183 m_testCtx.getLog().startTestsCasesTime();
185 m_testCtx.getLog() << TestLog::Integer(testPackage->getName(), "Total tests case duration in microseconds", "us", QP_KEY_TAG_TIME, duration);
188 m_testCtx.getLog() << TestLog::Integer(it->first, "The test group case duration in microseconds", "us", QP_KEY_TAG_TIME, it->second);
190 m_testCtx.getLog().endTestsCasesTime();
206 TestLog& log = m_testCtx.getLog();
216 m_testCtx.setTestResult(QP_TEST_RESULT_LAST, "");
217 m_testCtx.setTerminateAfter(false);
231 m_testCtx.setTestResult(QP_TEST_RESULT_RESOURCE_ERROR, "Failed to allocate memory in test case init");
232 m_testCtx.setTerminateAfter(true);
238 m_testCtx.setTestResult(e.getTestResult(), e.getMessage());
239 m_testCtx.setTerminateAfter(e.isFatal());
245 m_testCtx.setTestResult(QP_TEST_RESULT_FAIL, e.getMessage());
249 DE_ASSERT(initOk || m_testCtx.getTestResult() != QP_TEST_RESULT_LAST);
256 TestLog& log = m_testCtx.getLog();
265 const bool suppressLogging = m_testCtx.getLog().isSupressLogging();
268 m_testCtx.getLog().supressLogging(false);
271 m_testCtx.setTerminateAfter(true);
273 m_testCtx.getLog().supressLogging(suppressLogging);
279 m_testCtx.getLog() << TestLog::Integer("TestDuration", "Test case duration in microseconds", "us", QP_KEY_TAG_TIME, duration);
283 const qpTestResult testResult = m_testCtx.getTestResult();
284 const char* const testResultDesc = m_testCtx.getTestResultDesc();
285 const bool terminateAfter = m_testCtx.getTerminateAfter();
289 m_testCtx.getLog().endCase(testResult, testResultDesc);
317 (m_status.numFailed > 0 && m_testCtx.getCommandLine().isTerminateOnFailEnabled()))
322 if (m_testCtx.getWatchDog())
323 qpWatchDog_reset(m_testCtx.getWatchDog());
328 TestLog& log = m_testCtx.getLog();
331 m_testCtx.touchWatchdog();
339 m_testCtx.setTestResult(QP_TEST_RESULT_RESOURCE_ERROR, "Failed to allocate memory during test execution");
340 m_testCtx.setTerminateAfter(true);
345 m_testCtx.setTestResult(e.getTestResult(), e.getMessage());
346 m_testCtx.setTerminateAfter(e.isFatal());
351 m_testCtx.setTestResult(QP_TEST_RESULT_FAIL, e.getMessage());