mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-15 01:42:37 +00:00
ICU-2896 uconfig.h change, don't crash when data missing
X-SVN-Rev: 12190
This commit is contained in:
parent
c92d3185a1
commit
ff094882fa
1 changed files with 4 additions and 2 deletions
|
@ -567,8 +567,10 @@ static void TestNewTypes() {
|
|||
status = U_ZERO_ERROR;
|
||||
resB = ures_getByKey(theBundle,"CollationElements", resB,&status);
|
||||
str = ures_getStringByKey(resB,"Sequence",&strLength,&status);
|
||||
if(u_strcmp(my,str) != 0){
|
||||
log_err("Did not get te expeted string for escaped \\u0075\n");
|
||||
if(!str || U_FAILURE(status)) {
|
||||
log_data_err("Could not load CollationElements from theBundle: %s\n", u_errorName(status));
|
||||
} else if(u_strcmp(my,str) != 0){
|
||||
log_err("Did not get the expected string for escaped \\u0075\n");
|
||||
}
|
||||
ures_close(resB);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue