X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/b25be06635768807f8f693286fa73bb2297bb06c..4388f060552cc537e71e957d32f35e9d75a61233:/icuSources/test/intltest/tzregts.cpp diff --git a/icuSources/test/intltest/tzregts.cpp b/icuSources/test/intltest/tzregts.cpp index 0f068174..08c07c48 100644 --- a/icuSources/test/intltest/tzregts.cpp +++ b/icuSources/test/intltest/tzregts.cpp @@ -1,5 +1,5 @@ /******************************************************************** - * Copyright (c) 1997-2010, International Business Machines + * Copyright (c) 1997-2011, International Business Machines * Corporation and others. All Rights Reserved. ********************************************************************/ @@ -147,7 +147,7 @@ void TimeZoneRegressionTest:: Test4073215() SimpleDateFormat sdf((UnicodeString)"E d MMM yyyy G HH:mm", status); if(U_FAILURE(status)) { - errcheckln(status, "Error creating date format %s", u_errorName(status)); + dataerrln("Error creating date format %s", u_errorName(status)); return; } sdf.setCalendar(cal); @@ -482,7 +482,7 @@ void TimeZoneRegressionTest:: Test4126678() int32_t raw_offset = tz->getRawOffset(); if (offset == raw_offset) - errln("Offsets should match"); + dataerrln("Offsets should match"); delete cal; } @@ -506,6 +506,10 @@ void TimeZoneRegressionTest:: Test4151406() { UErrorCode ec = U_ZERO_ERROR; int32_t count; StringEnumeration* ids = TimeZone::createEnumeration(rawoffset); + if (ids == NULL) { + dataerrln("Fail: TimeZone::createEnumeration(rawoffset)"); + continue; + } count = ids->count(ec); if (count> max) max = count;