From f460a324b359b410c32ecafdcfc51dd9fe59e901 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Sun, 3 Nov 2019 16:00:23 +0200 Subject: [PATCH] We must not rely on current directory when start tests. --HG-- branch : develop --- src/test/ValentinaTest/qttestmainlambda.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/ValentinaTest/qttestmainlambda.cpp b/src/test/ValentinaTest/qttestmainlambda.cpp index 1f6a61c75..d066ca849 100644 --- a/src/test/ValentinaTest/qttestmainlambda.cpp +++ b/src/test/ValentinaTest/qttestmainlambda.cpp @@ -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)