ICU-1910 Make sure that the test succeeds when testing in files mode on case insensitive file systems

X-SVN-Rev: 8670
This commit is contained in:
George Rhoten 2002-05-22 18:28:11 +00:00
parent 7a30df00e2
commit d1571a26dc

View File

@ -529,7 +529,9 @@ TestOpenDirect(void) {
if(U_FAILURE(errorCode) || errorCode==U_USING_DEFAULT_ERROR || errorCode==U_USING_FALLBACK_ERROR) {
/* falling back to default or root is ok */
errorCode=U_ZERO_ERROR;
} else {
} else if(0!=uprv_strcmp("translit_INDEX", ures_getLocale(translit_index, &errorCode))) {
/* Opening this file will work in "files mode" on Windows and the Mac,
which have case insensitive file systems */
log_err("ures_open(\"translit_index\") succeeded, should fail! Got: %s\n", u_errorName(errorCode));
}
ures_close(translit_index);