From 478d4dde9f0f6f232136935d93f0b5e3cca9db61 Mon Sep 17 00:00:00 2001 From: Thomas Hartmann Date: Thu, 6 Aug 2009 16:59:09 +0200 Subject: Extra check in pluginloader autotest This extra check prevents a crash if plugin loading fails Reviewed-by: Joerg --- tests/auto/qpluginloader/tst_qpluginloader.cpp | 1 + 1 file changed, 1 insertion(+) 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(loader1.instance()); + QVERIFY(instance1); QCOMPARE(instance1->pluginName(), QLatin1String("Plugin ok")); QPluginLoader loader2; -- cgit v0.12