From dea3ffda73324281ae7b53f255c1615d3760d9de Mon Sep 17 00:00:00 2001 From: "Steven R. Loomis" Date: Tue, 25 May 2004 05:41:55 +0000 Subject: [PATCH] ICU-2487 test for ures_openDirect with incoming warning X-SVN-Rev: 15526 --- icu4c/source/test/cintltst/crestst.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/icu4c/source/test/cintltst/crestst.c b/icu4c/source/test/cintltst/crestst.c index cd880547bc7..753c040ab2a 100644 --- a/icu4c/source/test/cintltst/crestst.c +++ b/icu4c/source/test/cintltst/crestst.c @@ -521,6 +521,14 @@ TestOpenDirect(void) { log_err("ures_openDirect(\"translit_index_WronG\") succeeded, should fail!\n"); } ures_close(translit_index); + + errorCode = U_USING_FALLBACK_WARNING;; + translit_index=ures_openDirect(NULL, "translit_index", &errorCode); + if(U_FAILURE(errorCode)) { + log_err("ures_openDirect(\"translit_index\") failed when U_USING_FALLBACK_WARNING was set prior to call: %s\n", u_errorName(errorCode)); + return; + } + ures_close(translit_index); } static int32_t