summaryrefslogtreecommitdiffstats
path: root/tests/auto/corelib/plugin
diff options
context:
space:
mode:
authorJason McDonald <jason.mcdonald@nokia.com>2011-11-10 13:10:40 +1000
committerQt by Nokia <qt-info@nokia.com>2011-11-11 04:28:14 +0100
commit64c8691548d357d34521ec698050cf4d442eee3d (patch)
tree67d8de49c7729b40aba838b0adaaad1cf8b77725 /tests/auto/corelib/plugin
parenta28817fd78540b312b0075ad45d227819175df93 (diff)
Cleanup corelib autotests
Use QVERIFY2 to provide better test diagnostics. Change-Id: I128004f4ee133ceed4d8f373bbbe4a0eee431ebf Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
Diffstat (limited to 'tests/auto/corelib/plugin')
-rw-r--r--tests/auto/corelib/plugin/qlibrary/tst_qlibrary.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/tests/auto/corelib/plugin/qlibrary/tst_qlibrary.cpp b/tests/auto/corelib/plugin/qlibrary/tst_qlibrary.cpp
index 5bd62a8494..a488aa021f 100644
--- a/tests/auto/corelib/plugin/qlibrary/tst_qlibrary.cpp
+++ b/tests/auto/corelib/plugin/qlibrary/tst_qlibrary.cpp
@@ -519,18 +519,13 @@ void tst_QLibrary::fileName()
QLibrary lib(libName);
bool ok = lib.load();
- if (!ok) {
- qDebug() << lib.errorString();
- }
-
- QVERIFY(ok);
+ QVERIFY2(ok, qPrintable(lib.errorString()));
#if defined(Q_OS_WIN)
QCOMPARE(lib.fileName().toLower(), expectedFilename.toLower());
#else
QCOMPARE(lib.fileName(), expectedFilename);
#endif
QVERIFY(lib.unload());
-
}
void tst_QLibrary::multipleInstancesForOneLibrary()