Add expect-fail test-cases for und_US, und_GB to tst_QLocale::ctor()

These exhibit the problem described by a recent bug report.

Task-number: QTBUG-121485
Change-Id: Ia09acfa22e687ba096091a73f30df1ffd22a6e32
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
bb10
Edward Welbourne 2024-01-24 17:44:25 +01:00
parent 4fe7e8e51a
commit f4f35fe84a
1 changed files with 4 additions and 0 deletions

View File

@ -302,6 +302,8 @@ void tst_QLocale::ctor_data()
LANDFILL("und_CN", Chinese, SimplifiedHanScript, China);
LANDFILL("und_TW", Chinese, TraditionalHanScript, Taiwan);
LANDFILL("und_CA", English, LatinScript, Canada);
LANDFILL("und_US", English, LatinScript, UnitedStates);
LANDFILL("und_GB", English, LatinScript, UnitedKingdom);
#undef LANDFILL
}
@ -313,6 +315,8 @@ void tst_QLocale::ctor()
{
const QLocale l(reqLang, reqText, reqLand);
QEXPECT_FAIL("und_US", "QTBUG-121485: und_* likely-subtag rules broken", Abort);
QEXPECT_FAIL("und_GB", "QTBUG-121485: und_* likely-subtag rules broken", Abort);
QTEST(l.language(), "expLang");
QTEST(l.script(), "expText");
QTEST(l.territory(), "expLand");