ICU-4092 Improve code coverage. The previous check in didn't quite work.

X-SVN-Rev: 17019
This commit is contained in:
George Rhoten 2004-12-24 07:53:41 +00:00
parent d5a218810c
commit ba3a90a424

View File

@ -182,16 +182,16 @@ static void TestHeapFunctions() {
log_err("Heap functions are not being called from ICU.\n");
}
ures_close(rb);
u_getUnicodeVersion(unicodeVersion);
if (gBlockCount == 0 || unicodeVersion[0] <= 0) {
log_err("Heap functions are not being called from ICU or Unicode version is wrong.\n");
}
/* Cleanup should put the heap back to its default implementation. */
u_cleanup();
utrace_setFunctions(traceContext, traceEntryFunc, traceExitFunc, traceDataFunc);
utrace_setLevel(traceLevel);
u_setDataDirectory(icuDataDir);
u_getUnicodeVersion(unicodeVersion);
if (unicodeVersion[0] <= 0) {
log_err("Properties doesn't reinitialize without u_init.\n");
}
status = U_ZERO_ERROR;
u_init(&status);
TEST_STATUS(status, U_ZERO_ERROR);