aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexandru Croitor <alexandru.croitor@qt.io>2017-03-21 11:22:00 +0100
committerAlexandru Croitor <alexandru.croitor@qt.io>2017-03-21 10:32:23 +0000
commitcf5ad85a35824646a30d90de79d72f4068dade50 (patch)
tree50b06ab09fcc49747b52247b487b6ed513c2c304
parent44ae7457c8e69e1db0ade7a614aa292f169f0d9d (diff)
Fix failing QML test with Qt 5.9 due to assert
Due to an issue in unreleased Qt 5.9 (QTBUG-58837), a QML file loaded via a relative path results in an assert crash. Fix by adjusting the path to an absolute path like in other QML examples. Change-Id: Id9e794b57a65d9605018dfd6230d66782a17a254 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
-rwxr-xr-xtests/QtQml/bug_557.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/QtQml/bug_557.py b/tests/QtQml/bug_557.py
index d1e8ede9..96e89d6d 100755
--- a/tests/QtQml/bug_557.py
+++ b/tests/QtQml/bug_557.py
@@ -27,6 +27,7 @@
#############################################################################
import sys
+from helper import adjust_filename
from PySide2.QtCore import QUrl
from PySide2.QtGui import QGuiApplication
@@ -38,5 +39,5 @@ engine = QQmlEngine()
component = QQmlComponent(engine)
# This should segfault if the QDeclarativeComponent has not QQmlEngine
-component.loadUrl(QUrl.fromLocalFile('foo.qml'))
+component.loadUrl(QUrl.fromLocalFile(adjust_filename('foo.qml', __file__)))