From 3f4a16a84e7628cc2c5c9871d7faaa7f9f3e455a Mon Sep 17 00:00:00 2001 From: Ivailo Monev Date: Fri, 28 Jul 2023 05:15:59 +0300 Subject: [PATCH] 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 --- kdecore/tests/klocalizedstringtest.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/kdecore/tests/klocalizedstringtest.cpp b/kdecore/tests/klocalizedstringtest.cpp index 121da918..14e25fd0 100644 --- a/kdecore/tests/klocalizedstringtest.cpp +++ b/kdecore/tests/klocalizedstringtest.cpp @@ -268,7 +268,6 @@ void KLocalizedStringTest::testThreads() std::future future4 = std::async(std::launch::async, &KLocalizedStringTest::translateQt, this); std::future future5 = std::async(std::launch::async, &KLocalizedStringTest::translateQt, this); std::future future6 = std::async(std::launch::async, &KLocalizedStringTest::translateToFrench, this); - KGlobal::locale()->removeCatalog("kdelibs4"); kDebug() << "Joining all threads"; future1.wait(); future2.wait();