From 64e7e84da292ad52aa2004849a267934119fb851 Mon Sep 17 00:00:00 2001 From: Markus Scherer Date: Wed, 9 Apr 2003 17:27:05 +0000 Subject: [PATCH] ICU-2789 add UErrorCode to getInclusions()/addPropertyStarts() X-SVN-Rev: 11478 --- icu4c/source/test/intltest/tstnorm.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/icu4c/source/test/intltest/tstnorm.cpp b/icu4c/source/test/intltest/tstnorm.cpp index e648e3c70cf..ed20eacab27 100644 --- a/icu4c/source/test/intltest/tstnorm.cpp +++ b/icu4c/source/test/intltest/tstnorm.cpp @@ -1761,8 +1761,15 @@ BasicNormalizerTest::TestSkippable() { UChar32 start, limit, rangeStart, rangeEnd; int32_t i, range, count; + UErrorCode errorCode; + /* build NF*Skippable sets from runtime data */ - unorm_addPropertyStarts((USet *)&starts); + errorCode=U_ZERO_ERROR; + unorm_addPropertyStarts((USet *)&starts, &errorCode); + if(U_FAILURE(errorCode)) { + errln("unable to load normalization data for unorm_addPropertyStarts(() - %s\n", u_errorName(errorCode)); + return; + } count=starts.getRangeCount(); start=limit=0;