Files
pilotclient/tests/blackcore/main.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

36 lines
911 B
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 "blackcore/application.h"
#include <QCoreApplication>
#include <QDebug>
using namespace BlackCoreTest;
//! Starter for test cases
int main(int argc, char *argv[])
{
QCoreApplication qa(argc, argv);
Q_UNUSED(qa);
BlackCore::CApplication a;
a.addVatlibOptions();
a.start();
return CBlackCoreTestMain::unitMain(argc, argv);
}
//! \endcond