]> granicus.if.org Git - icu/commitdiff
ICU-20795 BRS test without data task: Adds a status check after Locale instance
authorgnrunge <nrunge@google.com>
Thu, 5 Sep 2019 22:41:31 +0000 (15:41 -0700)
committergnrunge <41129501+gnrunge@users.noreply.github.com>
Fri, 6 Sep 2019 16:43:30 +0000 (09:43 -0700)
creation. Test causes segmentation fault if it tries to continue beyond failed
instance creation.
segmentation fault if instance creation fails

icu4c/source/test/intltest/dtfmttst.cpp

index 128edba98fec35bda3a7c3585b16e24107e68627..0f6d1d1a4f06cc9ae372f8482fb19a6a0edc8773 100644 (file)
@@ -5551,6 +5551,7 @@ void DateFormatTest::TestAdoptCalendarLeak() {
                "hours=h23;lb=strict;lw=normal;measure=metric;numbers=latn;"
                "rg=atzzzz;sd=atat1;ss=none;timezone=Europe/Vienna"),
         status);
+    ASSERT_OK(status);
     sdf.adoptCalendar(Calendar::createInstance(status));
 }