diff options
author | Victor Chang <vichang@google.com> | 2022-11-29 10:11:11 +0000 |
---|---|---|
committer | Victor Chang <vichang@google.com> | 2023-09-28 15:17:52 +0000 |
commit | b0b2b386cbab7a578c07e4d6811c8ef33f5bdd6c (patch) | |
tree | 35e8bfcbaace989c61b4841fe200bdb2ade77ca9 | |
parent | c9d896b2fcf22e7ab72b6a3d02d96a2f75c7d4d6 (diff) | |
download | icu-b0b2b386cbab7a578c07e4d6811c8ef33f5bdd6c.tar.gz |
Android patch: Allow more than a min number of languages provided in AOSPandroid-vts-14.0_r3android-vts-14.0_r2android-cts-14.0_r3android-cts-14.0_r2
set the minimum number of languages number that should be in the SW,
but do not limit OEM to add additional language support.
Bug: 259645941
Test: run cts -m CtsIcu4cTestCases
(cherry picked from https://android-review.googlesource.com/q/commit:504610482bc3462cf027c017c09d931f55b85a1e)
Change-Id: I8d1ae863958df583dddb3f4f42485361b8b13255
Bug: 302454141
-rw-r--r-- | icu4c/source/test/intltest/loctest.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/icu4c/source/test/intltest/loctest.cpp b/icu4c/source/test/intltest/loctest.cpp index 2cf9143ad..ecc1bf01a 100644 --- a/icu4c/source/test/intltest/loctest.cpp +++ b/icu4c/source/test/intltest/loctest.cpp @@ -927,8 +927,9 @@ LocaleTest::TestGetLangsAndCountries() ; /* TODO: Change this test to be more like the cloctst version? */ - if (testCount != 595) - errln("Expected getISOLanguages() to return 595 languages; it returned %d", testCount); + // Allow more than a min number of languages provided in AOSP + if (testCount < 595) + errln("Expected getISOLanguages() to return at least 595 languages; it returned %d", testCount); else { for (i = 0; i < 15; i++) { int32_t j; |