summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-09-30 03:11:12 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-09-30 03:11:12 +0000
commit13ef7e438a484011cb29b7dac467964c49fa7b4a (patch)
tree7c0067fd3a55cd593296bb775b962b346c4472bf
parentb4ad25ea1cb24336372da4735ce2cdf6429b952d (diff)
parent15b9fb0b2e08f60ad412fb651b2963fa457652dc (diff)
downloadicu-android14-qpr1-s2-release.tar.gz
Change-Id: Idb9deb68af5400b3cced6d451e3b260909dfc786
-rw-r--r--icu4c/source/test/intltest/loctest.cpp5
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;