Files
pilotclient/tests/blackcore/testblackcoremain.cpp
Klaus Basan f124412896 refs #605, fixed unit test itself
* threaded reader were normal members causing a crash when those were moved in their own thread
* we need own event processing for unit test
* Network request needs to be generated in main thread
* don`t shutdown readers on QCoreApplication::aboutToQuit, let CApplication handle it
* use CApplication in unit test (as in real world)

Unrelated:
* access global setup via application
2016-03-18 01:09:17 +00:00

44 lines
1.1 KiB
C++

/* Copyright (C) 2014
* swift project Community / Contributors
*
* This file is part of swift project. It is subject to the license terms in the LICENSE file found in the top-level
* directory of this distribution and at http://www.swift-project.org/license.html. No part of swift project,
* including this file, may be copied, modified, propagated, or distributed except according to the terms
* contained in the LICENSE file.
*/
//! \cond PRIVATE_TESTS
/*!
* \file
* \ingroup testblackcore
*/
#include "testblackcoremain.h"
#include "testinterpolator.h"
#include "testreaders.h"
#include "testnetwork.h"
namespace BlackCoreTest
{
int CBlackCoreTestMain::unitMain(int argc, char *argv[])
{
int status = 0;
{
CTestInterpolator interpolatorTests;
status |= QTest::qExec(&interpolatorTests, argc, argv);
}
{
CTestReaders readersTests;
status |= QTest::qExec(&readersTests, argc, argv);
}
{
CTestNetwork networkTests;
status |= QTest::qExec(&networkTests, argc, argv);
}
return status;
}
} // namespace
//! \endcond