summaryrefslogtreecommitdiff
path: root/tests/auto/declarative_ui/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/declarative_ui/main.cpp')
-rw-r--r--tests/auto/declarative_ui/main.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/auto/declarative_ui/main.cpp b/tests/auto/declarative_ui/main.cpp
index df5d9621..ec27fd56 100644
--- a/tests/auto/declarative_ui/main.cpp
+++ b/tests/auto/declarative_ui/main.cpp
@@ -39,5 +39,16 @@
**
****************************************************************************/
+#include <QtCore/QCoreApplication>
#include <QtQuickTest/quicktest.h>
+
+static void initializeLibraryPath()
+{
+ // Set custom path since CI doesn't install test plugins
+ QCoreApplication::addLibraryPath(QCoreApplication::applicationDirPath() +
+ QStringLiteral("/../../../plugins"));
+}
+
+Q_COREAPP_STARTUP_FUNCTION(initializeLibraryPath)
+
QUICK_TEST_MAIN(declarative_ui)