TVerdict CTe_UTraceSuiteStepBase::doTestStepPreambleL()
/**
 * @return - TVerdict
 * Implementation of CTestStep base class virtual
 * It is used for doing all initialisation common to derived classes in here.
 * Make it being able to leave if there are any errors here as there's no point in
 * trying to run a test step if anything fails.
 * The leave will be picked up by the framework.
 */
	{
	if(GetConfigs()== KErrNone)
		{
		if(iLoggingEnabled)
			{
			INFO_PRINTF1(_L("startlogging"));
			StartLogging();
			SetTestStepResult(EPass);
			}
		}
	else
		{
		SetTestStepResult(EFail);
		}
	return TestStepResult();
	}
Esempio n. 2
0
std::vector<std::string> GetConfigs()
{
	pstring configDirectory = GetConfigDirectory();
	std::vector<Config> vConfigs = GetConfigs(configDirectory.c_str());
	std::vector<std::string> configs;

	for (auto config = vConfigs.begin(); config != vConfigs.end(); config++)
		configs.push_back(config->name);

	return configs;
}
Esempio n. 3
0
// config functions
EGLAPI EGLBoolean EGLAPIENTRY eglGetConfigs(EGLDisplay dpy, EGLConfig *configs,
			 EGLint config_size, EGLint *num_config)
{
	eglRecordError(EGL_SUCCESS);
	return GetConfigs(configs, config_size, num_config);
}