diff --git a/icu4c/source/test/intltest/dtifmtts.cpp b/icu4c/source/test/intltest/dtifmtts.cpp index 16c94d1164..b640cec39b 100644 --- a/icu4c/source/test/intltest/dtifmtts.cpp +++ b/icu4c/source/test/intltest/dtifmtts.cpp @@ -1579,7 +1579,7 @@ void DateIntervalFormatTest::testTicket11669() { LocalPointer intervalStart(Calendar::createInstance(*tz, Locale::getEnglish(), status), status); LocalPointer intervalEnd(Calendar::createInstance(*tz, Locale::getEnglish(), status), status); if (U_FAILURE(status)) { - errln("%s:%d %s", __FILE__, __LINE__, u_errorName(status)); + errcheckln(status, "%s:%d %s", __FILE__, __LINE__, u_errorName(status)); return; } diff --git a/icu4c/source/test/intltest/measfmttest.cpp b/icu4c/source/test/intltest/measfmttest.cpp index 4732f612fa..279d268458 100644 --- a/icu4c/source/test/intltest/measfmttest.cpp +++ b/icu4c/source/test/intltest/measfmttest.cpp @@ -1,6 +1,6 @@ /* ******************************************************************************* -* Copyright (C) 2014-2015, International Business Machines Corporation and * +* Copyright (C) 2014-2016, International Business Machines Corporation and * * others. All Rights Reserved. * ******************************************************************************* * @@ -1600,7 +1600,7 @@ void MeasureFormatTest::TestIndividualPluralFallback() { new Measure(2, MeasureUnit::createGenericTemperature(errorCode), errorCode), errorCode); UnicodeString expected = UNICODE_STRING_SIMPLE("2\\u00B0").unescape(); UnicodeString actual; - assertEquals("2 deg temp in fr_CA", expected, mf.format(twoDeg.orphan(), actual, errorCode)); + assertEquals("2 deg temp in fr_CA", expected, mf.format(twoDeg.orphan(), actual, errorCode), TRUE); } void MeasureFormatTest::verifyFieldPosition( diff --git a/icu4c/source/test/intltest/tufmtts.cpp b/icu4c/source/test/intltest/tufmtts.cpp index 6b1ed5a008..2a5ff6244d 100644 --- a/icu4c/source/test/intltest/tufmtts.cpp +++ b/icu4c/source/test/intltest/tufmtts.cpp @@ -1,5 +1,5 @@ /******************************************************************** - * Copyright (c) 2008-2015, International Business Machines Corporation and + * Copyright (c) 2008-2016, International Business Machines Corporation and * others. All Rights Reserved. ********************************************************************/ @@ -522,7 +522,7 @@ void TimeUnitTest::TestBritishShortHourFallback() { UnicodeString result; formatter.format(oneHour, result, status); assertSuccess("TestBritishShortHourFallback()", status); - assertEquals("TestBritishShortHourFallback()", UNICODE_STRING_SIMPLE("1 hr"), result); + assertEquals("TestBritishShortHourFallback()", UNICODE_STRING_SIMPLE("1 hr"), result, TRUE); } #endif