From 7a9480beccb27b2f35eccc6a4e60c62de94380a4 Mon Sep 17 00:00:00 2001 From: "Steven R. Loomis" Date: Thu, 5 Sep 2013 03:55:29 +0000 Subject: [PATCH] ICU-10357 only show 'are you missing data' once X-SVN-Rev: 34197 --- icu4c/source/test/intltest/intltest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/icu4c/source/test/intltest/intltest.cpp b/icu4c/source/test/intltest/intltest.cpp index 31f2a080b10..774a0e6d6f2 100644 --- a/icu4c/source/test/intltest/intltest.cpp +++ b/icu4c/source/test/intltest/intltest.cpp @@ -890,7 +890,7 @@ void IntlTest::dataerr( const UnicodeString &message ) void IntlTest::dataerrln( const UnicodeString &message ) { - IncDataErrorCount(); + int32_t errCount = IncDataErrorCount(); UnicodeString msg; if (!warn_on_missing_data) { IncErrorCount(); @@ -899,7 +899,7 @@ void IntlTest::dataerrln( const UnicodeString &message ) msg = UnicodeString("[DATA] " + message); } - if (!no_err_msg) LL_message( msg + " - (Are you missing data?)", TRUE ); + if (!no_err_msg && (errCount==1)) LL_message( msg + " - (Are you missing data?)", TRUE ); } void IntlTest::errcheckln(UErrorCode status, const UnicodeString &message ) { -- 2.40.0