We must not rely on current directory when start tests.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2019-11-03 16:00:23 +02:00
parent bb70989165
commit f460a324b3

View File

@ -62,7 +62,7 @@ int main(int argc, char** argv)
TestVApplication app( argc, argv );// For QPrinter
QResource::registerResource(QStringLiteral("./test_data.rcc"));
QResource::registerResource(QCoreApplication::applicationDirPath() + QStringLiteral("/test_data.rcc"));
int status = 0;
auto ASSERT_TEST = [&status, argc, argv](QObject* obj)