diff options
author | Simon Hausmann <simon.hausmann@theqtcompany.com> | 2016-08-25 10:33:07 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@qt.io> | 2016-08-26 19:05:56 +0000 |
commit | 018cd6d70f18762d20cc501ac352fa5f94eb7f66 (patch) | |
tree | a9af8b291bf5318365b431efd18f2abd4e76bf5b /tests/auto/qml/qqmlextensionplugin | |
parent | 830a55ef58a21bf342eef1c2544bcbc899014e7b (diff) |
Improve error handling in library loading test
If we fail to load the library, print the potential reason.
Change-Id: Idf1e7673461f0c36116d889b952c4f4715a35e6c
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@qt.io>
Reviewed-by: Jan Arve Sæther <jan-arve.saether@theqtcompany.com>
Diffstat (limited to 'tests/auto/qml/qqmlextensionplugin')
-rw-r--r-- | tests/auto/qml/qqmlextensionplugin/tst_qqmlextensionplugin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/qml/qqmlextensionplugin/tst_qqmlextensionplugin.cpp b/tests/auto/qml/qqmlextensionplugin/tst_qqmlextensionplugin.cpp index bd44bd7c8b..124a107a37 100644 --- a/tests/auto/qml/qqmlextensionplugin/tst_qqmlextensionplugin.cpp +++ b/tests/auto/qml/qqmlextensionplugin/tst_qqmlextensionplugin.cpp @@ -109,7 +109,7 @@ void tst_qqmlextensionplugin::iidCheck() QFETCH(QString, filePath); QPluginLoader loader(filePath); - QVERIFY(loader.load()); + QVERIFY2(loader.load(), qPrintable(loader.errorString())); QVERIFY(loader.instance() != Q_NULLPTR); if (qobject_cast<QQmlExtensionPlugin *>(loader.instance())) { |