From kde-commits Sun Jun 20 09:17:12 2010 From: =?utf-8?q?Aur=C3=A9lien=20G=C3=A2teau?= Date: Sun, 20 Jun 2010 09:17:12 +0000 To: kde-commits Subject: KDE/kdelibs/kdeui/tests Message-Id: <20100620091712.CF82FAC8DB () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=127702494932586 SVN commit 1140317 by gateau: Improved test check a bit It's nicer to use QCOMPARE because the compared values are output in case of error M +1 -1 kiconloader_unittest.cpp --- trunk/KDE/kdelibs/kdeui/tests/kiconloader_unittest.cpp #1140316:1140317 @@ -171,7 +171,7 @@ KIconLoader::DefaultState, QStringList(), &path ); QVERIFY(!pix.isNull()); - QVERIFY(path.endsWith(expectedFileName)); + QCOMPARE(path.section('/', -1), expectedFileName); // do the same test using a global iconloader, so that // we get into the final return statement, which can only happen