Use QSKIP to flag a test 'skipped', if server is not reachable

refs #682
This commit is contained in:
Roland Winklmeier
2016-06-20 17:54:22 +02:00
parent fdfc5256eb
commit ef1b7b2c21
2 changed files with 4 additions and 7 deletions

View File

@@ -57,7 +57,7 @@ namespace BlackCoreTest
void CTestReaders::readIcaoData()
{
const CUrl url(sApp->getGlobalSetup().getDbIcaoReaderUrl());
if (!this->pingServer(url)) { return; }
if (!this->pingServer(url)) { QSKIP("Server not reachable."); }
m_icaoReader->start();
m_icaoReader->readInBackgroundThread(CEntityFlags::AllIcaoEntities, QDateTime());
@@ -86,7 +86,7 @@ namespace BlackCoreTest
void CTestReaders::readModelData()
{
const CUrl url(sApp->getGlobalSetup().getDbModelReaderUrl());
if (!this->pingServer(url)) { return; }
if (!this->pingServer(url)) { QSKIP("Server not reachable."); }
m_modelReader->start();
m_modelReader->readInBackgroundThread(CEntityFlags::ModelEntity, QDateTime());