Fix tst_qqmlbundle on Windows.
authorFriedemann Kleint <Friedemann.Kleint@digia.com>
Tue, 18 Dec 2012 11:14:34 +0000 (12:14 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Wed, 19 Dec 2012 07:36:47 +0000 (08:36 +0100)
The plugin was not found since it was in the Release/Debug
subfolder, respectively.

Task-number: QTBUG-28611

Change-Id: Ieaea7c67e2524a7d0ca3011d96f31b15929e551c
Reviewed-by: Janne Anttila <janne.anttila@digia.com>
tests/auto/qml/qqmlbundle/data/imports/bundletest/plugin1.pro
tests/auto/qml/qqmlbundle/tst_qqmlbundle.cpp

index 2ffa05a..934bb2d 100644 (file)
@@ -3,4 +3,5 @@ CONFIG += plugin
 SOURCES += plugin.cpp
 QT = core qml
 
+DESTDIR = ./
 DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0
index 70cb319..168e685 100644 (file)
@@ -201,7 +201,7 @@ void tst_qqmlbundle::import()
     engine.addImportPath(testFile("imports"));
 
     QQmlComponent component(&engine, testFileUrl("import.qml"));
-    QVERIFY(component.isReady());
+    QVERIFY2(component.isReady(), QQmlDataTest::msgComponentError(component, &engine));
 
     QObject *o = component.create();
     QVERIFY(o != 0);