Fix test crash.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2018-01-21 21:42:04 +02:00
parent 96df29144e
commit 76dd51b6c6
5 changed files with 8 additions and 7 deletions

View File

@ -29,8 +29,8 @@
#ifndef TESTVAPPLICATION_H
#define TESTVAPPLICATION_H
#include "../vmisc/vabstractapplication.h"
#include "../vmisc/projectversion.h"
#include "vabstractapplication.h"
#include "projectversion.h"
#if defined(qApp)
#undef qApp

View File

@ -36,7 +36,8 @@ HEADERS += \
$$PWD/dialogs/dialogexporttocsv.h \
$$PWD/customevents.h \
$$PWD/defglobal.h \
$$PWD/backport/qoverload.h
$$PWD/backport/qoverload.h \
$$PWD/testvapplication.h
# Qt's versions
# 5.2.0, 5.2.1

View File

@ -34,10 +34,11 @@
#include "tst_tstranslation.h"
#include "../vmisc/def.h"
#include "../vmisc/testvapplication.h"
int main(int argc, char** argv)
{
QApplication app( argc, argv );// For translation
TestVApplication app( argc, argv );// For QPrinter
int status = 0;
auto ASSERT_TEST = [&status, argc, argv](QObject* obj)

View File

@ -90,8 +90,7 @@ HEADERS += \
tst_readval.h \
tst_vtranslatevars.h \
tst_vabstractpiece.h \
tst_vtooluniondetails.h \
testvapplication.h
tst_vtooluniondetails.h
# Set using ccache. Function enable_ccache() defined in common.pri.
$$enable_ccache()

View File

@ -53,7 +53,7 @@
#include "../vmisc/def.h"
#include "../qmuparser/qmudef.h"
#include "testvapplication.h"
#include "../vmisc/testvapplication.h"
//---------------------------------------------------------------------------------------------------------------------
int main(int argc, char** argv)