Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7)

Unified Diff: source/test/intltest/regcoll.cpp

Issue 1621843002: ICU 56 update step 1 (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/icu.git@561
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « source/test/intltest/rbbitst.cpp ('k') | source/test/intltest/regextst.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: source/test/intltest/regcoll.cpp
diff --git a/source/test/intltest/regcoll.cpp b/source/test/intltest/regcoll.cpp
index 0cc127e704a81ee38a0d16906e2f912e0f7a6777..0168ad6864581d8ec188aad33b38b68d1a2858d6 100644
--- a/source/test/intltest/regcoll.cpp
+++ b/source/test/intltest/regcoll.cpp
@@ -101,12 +101,16 @@ void CollationRegressionTest::Test4051866(/* char* par */)
rules += "< p ,P";
// Build a collator containing expanding characters
- LocalPointer<RuleBasedCollator> c1(new RuleBasedCollator(rules, status));
+ LocalPointer<RuleBasedCollator> c1(new RuleBasedCollator(rules, status), status);
+ if (U_FAILURE(status)) {
+ errln("RuleBasedCollator(rule string) failed - %s", u_errorName(status));
+ return;
+ }
// Build another using the rules from the first
- LocalPointer<RuleBasedCollator> c2(new RuleBasedCollator(c1->getRules(), status));
+ LocalPointer<RuleBasedCollator> c2(new RuleBasedCollator(c1->getRules(), status), status);
if (U_FAILURE(status)) {
- errln("RuleBasedCollator(rule string) failed - %s", u_errorName(status));
+ errln("RuleBasedCollator(rule string from other RBC) failed - %s", u_errorName(status));
return;
}
« no previous file with comments | « source/test/intltest/rbbitst.cpp ('k') | source/test/intltest/regextst.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698