Index: source/test/intltest/rbbiapts.cpp |
diff --git a/source/test/intltest/rbbiapts.cpp b/source/test/intltest/rbbiapts.cpp |
index 56e2be45c48e57628e9b82a3a1c834b2793c30ac..2fb0a40b5307bc45bada773d1a360498e43b5416 100644 |
--- a/source/test/intltest/rbbiapts.cpp |
+++ b/source/test/intltest/rbbiapts.cpp |
@@ -1385,9 +1385,11 @@ void RBBIAPITest::TestFilteredBreakIteratorBuilder() { |
baseBI.adoptInstead(BreakIterator::createSentenceInstance(Locale::getFrench(), status)); |
TEST_ASSERT_SUCCESS(status); |
- logln("Building new BI\n"); |
- frenchBI.adoptInstead(builder->build(baseBI.orphan(), status)); |
- TEST_ASSERT_SUCCESS(status); |
+ if (U_SUCCESS(status)) { |
+ logln("Building new BI\n"); |
+ frenchBI.adoptInstead(builder->build(baseBI.orphan(), status)); |
+ TEST_ASSERT_SUCCESS(status); |
+ } |
if(frenchBI.isValid()) { |
logln("Testing:"); |