summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorThomas Hartmann <Thomas.Hartmann@nokia.com>2009-08-06 14:59:09 (GMT)
committerThomas Hartmann <Thomas.Hartmann@nokia.com>2009-08-07 07:33:39 (GMT)
commit478d4dde9f0f6f232136935d93f0b5e3cca9db61 (patch)
treea905aebdec4a557cd58a601a022e70a81a12d3b1 /tests
parentc10c20c5fc69ac5f0e406ecdc58d072a846e6743 (diff)
downloadQt-478d4dde9f0f6f232136935d93f0b5e3cca9db61.zip
Qt-478d4dde9f0f6f232136935d93f0b5e3cca9db61.tar.gz
Qt-478d4dde9f0f6f232136935d93f0b5e3cca9db61.tar.bz2
Extra check in pluginloader autotest
This extra check prevents a crash if plugin loading fails Reviewed-by: Joerg
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/qpluginloader/tst_qpluginloader.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/auto/qpluginloader/tst_qpluginloader.cpp b/tests/auto/qpluginloader/tst_qpluginloader.cpp
index 8221325..0b8ae45 100644
--- a/tests/auto/qpluginloader/tst_qpluginloader.cpp
+++ b/tests/auto/qpluginloader/tst_qpluginloader.cpp
@@ -264,6 +264,7 @@ void tst_QPluginLoader::deleteinstanceOnUnload()
if (pass == 0)
loader1.load(); // not recommended, instance() should do the job.
PluginInterface *instance1 = qobject_cast<PluginInterface*>(loader1.instance());
+ QVERIFY(instance1);
QCOMPARE(instance1->pluginName(), QLatin1String("Plugin ok"));
QPluginLoader loader2;