mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-23 18:32:49 +00:00
kdecore: stabilize KLocalizedStringTest::testThreads()
while the threads are running the kdelibs4 catalog may or may not get removed resulting in a race and different results in the functions (if the catalog is not there there will be no translation but the test functions expect it to be translated when french translations are installed) Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
3e1e82534a
commit
3f4a16a84e
1 changed files with 0 additions and 1 deletions
|
@ -268,7 +268,6 @@ void KLocalizedStringTest::testThreads()
|
|||
std::future<void> future4 = std::async(std::launch::async, &KLocalizedStringTest::translateQt, this);
|
||||
std::future<void> future5 = std::async(std::launch::async, &KLocalizedStringTest::translateQt, this);
|
||||
std::future<void> future6 = std::async(std::launch::async, &KLocalizedStringTest::translateToFrench, this);
|
||||
KGlobal::locale()->removeCatalog("kdelibs4");
|
||||
kDebug() << "Joining all threads";
|
||||
future1.wait();
|
||||
future2.wait();
|
||||
|
|
Loading…
Add table
Reference in a new issue