aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qquickopenglinfo
diff options
context:
space:
mode:
authorDavid Faure <david.faure@kdab.com>2016-08-03 20:01:58 +0200
committerDavid Faure <david.faure@kdab.com>2016-08-03 18:44:54 +0000
commit9baa491a068d6cc3a0276949b538ae8f415ae1ad (patch)
treea568ce50a1c4ff94c7e3bf1f33ca5d721073081c /tests/auto/quick/qquickopenglinfo
parentfe92db0a0eeed502ef851930b3404b38c4a03f4f (diff)
autotests: fix finding data files when not in CWD
These tests now can find their data files even when running from a different directory than the source directory, and they no longer misuse QUrl::fromLocalFile for a relative URL (resolved with QUrl::resolved). Change-Id: If18afd2e29571cca2a4c820eda6b9f6713e08a92 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'tests/auto/quick/qquickopenglinfo')
-rw-r--r--tests/auto/quick/qquickopenglinfo/tst_qquickopenglinfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/quick/qquickopenglinfo/tst_qquickopenglinfo.cpp b/tests/auto/quick/qquickopenglinfo/tst_qquickopenglinfo.cpp
index 29bcce802f..7446eaec0f 100644
--- a/tests/auto/quick/qquickopenglinfo/tst_qquickopenglinfo.cpp
+++ b/tests/auto/quick/qquickopenglinfo/tst_qquickopenglinfo.cpp
@@ -53,7 +53,7 @@ private slots:
void tst_QQuickOpenGLInfo::testProperties()
{
QQuickView view;
- view.setSource(QUrl::fromLocalFile("data/basic.qml"));
+ view.setSource(testFileUrl("basic.qml"));
view.show();
QVERIFY(QTest::qWaitForWindowExposed(&view));