From 1fbbe87e6d5dc84bff70bd90b71d07f9982a8bc3 Mon Sep 17 00:00:00 2001 From: Sergio Ahumada Date: Mon, 3 Feb 2014 16:02:17 +0100 Subject: tst_qtgraphicaleffects: make the test work on devices Make the test find the 'QtGraphicalEffects' import under Qml2ImportsPath (QML 2.x) instead of ImportsPath (QML 1.x) when the source code is not available. This seems to have worked so far because the source code is always available in the CI machines, but it fails on devices where is not. Change-Id: I475ccd5431d5e7c3adf239b1158d7bb67e0bc042 Reviewed-by: Gunnar Sletta --- tests/auto/tst_qtgraphicaleffects.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/auto/tst_qtgraphicaleffects.cpp b/tests/auto/tst_qtgraphicaleffects.cpp index a7b7020..7f17ee7 100644 --- a/tests/auto/tst_qtgraphicaleffects.cpp +++ b/tests/auto/tst_qtgraphicaleffects.cpp @@ -102,7 +102,7 @@ void tst_qtgraphicaleffects::initTestCase() QString import; // Allow the test to work whether or not the module is yet installed. - if (QFile::exists(QLibraryInfo::location(QLibraryInfo::ImportsPath) + "/QtGraphicalEffects")) { + if (QFile::exists(QLibraryInfo::location(QLibraryInfo::Qml2ImportsPath) + "/QtGraphicalEffects")) { // Module is installed - import it the nice way import = "QtGraphicalEffects"; } -- cgit v1.2.3