diff options
author | Ivan Solovev <ivan.solovev@qt.io> | 2021-11-09 19:08:43 +0100 |
---|---|---|
committer | Ivan Solovev <ivan.solovev@qt.io> | 2022-02-28 16:11:55 +0100 |
commit | 4b42b88f6be0bc64bc3b945814977a63f93e3f10 (patch) | |
tree | 8f2c9192feee05bae9d2f7b61fa31d19da4053c9 /tests/auto/declarative_ui/main.cpp | |
parent | bbe45b511304c9cd6bd8a4b1eb22206c0ef8bdbc (diff) | |
download | qtlocation-4b42b88f6be0bc64bc3b945814977a63f93e3f10.tar.gz |
Enable QML unit-tests
This commit re-enables all QML-related unit tests.
Task-number: QTBUG-96795
Change-Id: I43f5e8b7d7cadc9e4ea975275b5154a499eeabb4
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Andreas Buhr <andreas.buhr@qt.io>
Diffstat (limited to 'tests/auto/declarative_ui/main.cpp')
-rw-r--r-- | tests/auto/declarative_ui/main.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/auto/declarative_ui/main.cpp b/tests/auto/declarative_ui/main.cpp index 49e64bc0..668a32de 100644 --- a/tests/auto/declarative_ui/main.cpp +++ b/tests/auto/declarative_ui/main.cpp @@ -28,6 +28,7 @@ #include <QtCore/QCoreApplication> #include <QtQuickTest/quicktest.h> +#include <QtQml/QQmlEngine> static void initializeLibraryPath() { @@ -41,6 +42,9 @@ static void initializeLibraryPath() QStringLiteral("/../../../plugins")); #endif #endif + const QByteArray qmlPath = QCoreApplication::applicationDirPath().toLatin1() + + "/../../../qml"; + qputenv("QML_IMPORT_PATH", qmlPath); } Q_COREAPP_STARTUP_FUNCTION(initializeLibraryPath) |