diff options
| author | Ulf Hermann <ulf.hermann@qt.io> | 2022-01-11 10:20:29 +0100 |
|---|---|---|
| committer | Ulf Hermann <ulf.hermann@qt.io> | 2022-01-25 23:55:27 +0100 |
| commit | 0aa681c78b0457ea524a343428bce5395b3b85a9 (patch) | |
| tree | 40850015b7a0a04c16bcc18a00b811b242577784 /tests/auto/qml/qmlcachegen/tst_qmlcachegen.cpp | |
| parent | 41030c35505fdaa3989e7abe3367d393e4949074 (diff) | |
tst_qmlcachegen: Output some diagnostics on failures
Change-Id: I43b407670916ff53faab34194617d54217c0da27
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'tests/auto/qml/qmlcachegen/tst_qmlcachegen.cpp')
| -rw-r--r-- | tests/auto/qml/qmlcachegen/tst_qmlcachegen.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/auto/qml/qmlcachegen/tst_qmlcachegen.cpp b/tests/auto/qml/qmlcachegen/tst_qmlcachegen.cpp index 70b1c259e1..7dfac0538d 100644 --- a/tests/auto/qml/qmlcachegen/tst_qmlcachegen.cpp +++ b/tests/auto/qml/qmlcachegen/tst_qmlcachegen.cpp @@ -187,6 +187,7 @@ void tst_qmlcachegen::loadGeneratedFile() QQmlEngine engine; CleanlyLoadingComponent component(&engine, QUrl::fromLocalFile(testFilePath)); + QVERIFY2(component.isReady(), qPrintable(component.errorString())); QScopedPointer<QObject> obj(component.create()); QVERIFY(!obj.isNull()); QCOMPARE(obj->property("value").toInt(), 42); @@ -251,6 +252,7 @@ void tst_qmlcachegen::translationExpressionSupport() QQmlEngine engine; CleanlyLoadingComponent component(&engine, QUrl::fromLocalFile(testFilePath)); + QVERIFY2(component.isReady(), qPrintable(component.errorString())); QScopedPointer<QObject> obj(component.create()); QVERIFY(!obj.isNull()); QCOMPARE(obj->property("text").toString(), QString("ALL Ok")); @@ -293,6 +295,7 @@ void tst_qmlcachegen::signalHandlerParameters() QQmlEngine engine; CleanlyLoadingComponent component(&engine, QUrl::fromLocalFile(testFilePath)); + QVERIFY2(component.isReady(), qPrintable(component.errorString())); QScopedPointer<QObject> obj(component.create()); QVERIFY(!obj.isNull()); QMetaObject::invokeMethod(obj.data(), "runTest"); @@ -371,6 +374,7 @@ void tst_qmlcachegen::aheadOfTimeCompilation() QQmlEngine engine; CleanlyLoadingComponent component(&engine, QUrl::fromLocalFile(testFilePath)); + QVERIFY2(component.isReady(), qPrintable(component.errorString())); QScopedPointer<QObject> obj(component.create()); QVERIFY(!obj.isNull()); QVariant result; @@ -525,6 +529,7 @@ void tst_qmlcachegen::functionExpressions() QQmlEngine engine; CleanlyLoadingComponent component(&engine, QUrl::fromLocalFile(testFilePath)); + QVERIFY2(component.isReady(), qPrintable(component.errorString())); QScopedPointer<QObject> obj(component.create()); QVERIFY(!obj.isNull()); @@ -622,6 +627,7 @@ void tst_qmlcachegen::fsScriptImport() QQmlEngine engine; CleanlyLoadingComponent component(&engine, QUrl::fromLocalFile(testFilePath)); + QVERIFY2(component.isReady(), qPrintable(component.errorString())); QScopedPointer<QObject> obj(component.create()); QVERIFY(!obj.isNull()); QCOMPARE(obj->property("value").toInt(), 42); |
