summaryrefslogtreecommitdiff
path: root/tests/auto/qplacemanager_unsupported
diff options
context:
space:
mode:
authorAlex Blasche <alexander.blasche@digia.com>2013-07-10 16:29:38 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-07-11 17:03:53 +0200
commitc955dcea2df9378a45d53d5556a1f726bcf05306 (patch)
tree3fdf45b683e653157558ac111eed40104155af67 /tests/auto/qplacemanager_unsupported
parenta2bab88a3c5fa89580031d2cee62c67c943dca9d (diff)
downloadqtlocation-c955dcea2df9378a45d53d5556a1f726bcf05306.tar.gz
Fix autotests while shadow building with install path
These tests require test plugins which must be installed. However the CI does not run "make install" when shadow building with install path. Subsequently the plugins are not found. We add the plugin path of the shadow build dir to the library path enabling the various plugin loader cases to find the required plugin binaries. Change-Id: I4df21278f3e28db01b3062b27ccc317ccbab3142 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com> Reviewed-by: Alex <alexander.blasche@digia.com>
Diffstat (limited to 'tests/auto/qplacemanager_unsupported')
-rw-r--r--tests/auto/qplacemanager_unsupported/tst_qplacemanager_unsupported.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/auto/qplacemanager_unsupported/tst_qplacemanager_unsupported.cpp b/tests/auto/qplacemanager_unsupported/tst_qplacemanager_unsupported.cpp
index 2e65f36b..f1615536 100644
--- a/tests/auto/qplacemanager_unsupported/tst_qplacemanager_unsupported.cpp
+++ b/tests/auto/qplacemanager_unsupported/tst_qplacemanager_unsupported.cpp
@@ -88,6 +88,12 @@ private:
void tst_QPlaceManagerUnsupported::initTestCase()
{
+ /*
+ * Set custom path since CI doesn't install test plugins
+ */
+ QCoreApplication::addLibraryPath(QCoreApplication::applicationDirPath()
+ + QStringLiteral("/../../../plugins"));
+
m_provider = 0;
m_manager = 0;