From: Abhinav Gupta Date: Wed, 14 Sep 2011 16:12:36 +0000 (+0000) Subject: ICU-8558 added locale name to error log for TestOpenVsOpenRules. X-Git-Tag: milestone-59-0-1~4525 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=612c7a44b5e71b27920dae42bd594d97a0f916c9;p=icu ICU-8558 added locale name to error log for TestOpenVsOpenRules. X-SVN-Rev: 30655 --- diff --git a/icu4c/source/test/cintltst/capitst.c b/icu4c/source/test/cintltst/capitst.c index ed6dce798c3..35f59149b46 100644 --- a/icu4c/source/test/cintltst/capitst.c +++ b/icu4c/source/test/cintltst/capitst.c @@ -1039,10 +1039,14 @@ void TestOpenVsOpenRules(){ ucol_getSortKey(c2, str, u_strlen(str), sortKey2, sortKeyLen2 + 1); /* Check that the lengths are the same */ - doAssert((sortKeyLen1 == sortKeyLen2), "Sort key lengths do not match."); + if (sortKeyLen1 != sortKeyLen2) { + log_err("ERROR : Sort key lengths for locale '%s' do not match.\n", curLoc); + } /* check that the keys are the same */ - doAssert((memcmp(sortKey1, sortKey2, sortKeyLen1) == 0), "Keys are not equivalent"); + if (memcmp(sortKey1, sortKey2, sortKeyLen1) != 0) { + log_err("ERROR : Sort keys for locale '%s' are not equivalent.\n", curLoc); + } /* clean up after each string */ free(sortKey1);