From kde-commits Wed Sep 30 22:44:32 2009 From: Chusslove Illich Date: Wed, 30 Sep 2009 22:44:32 +0000 To: kde-commits Subject: KDE/kdelibs/kdecore/tests Message-Id: <1254350672.774556.19344.nullmailer () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=125435068018576 SVN commit 1029862 by ilic: Call to KLocale::removeCatalog() in threads test, to catch the race with translation methods. M +1 -0 klocalizedstringtest.cpp --- trunk/KDE/kdelibs/kdecore/tests/klocalizedstringtest.cpp #1029861:1029862 @@ -240,6 +240,7 @@ futures << QtConcurrent::run(this, &KLocalizedStringTest::correctSubs); futures << QtConcurrent::run(this, &KLocalizedStringTest::translateQt); futures << QtConcurrent::run(this, &KLocalizedStringTest::translateQt); + KGlobal::locale()->removeCatalog("kdelibs4"); Q_FOREACH(QFuture f, futures) f.waitForFinished(); QThreadPool::globalInstance()->setMaxThreadCount(1); // delete those threads