ICU-21355 Fixed UCONFIG_NO_FORMATTING=1 build issue for ICU 68.1 release.

This commit is contained in:
yumaoka 2020-10-27 01:25:11 -04:00 committed by Yoshito Umaoka
parent df72f8cbaf
commit cf88993f02
2 changed files with 5 additions and 1 deletions

View file

@ -1243,6 +1243,7 @@ static void TestDisplayNameBrackets()
static void TestIllegalArgumentWhenNoDataWithNoSubstitute()
{
#if !UCONFIG_NO_FORMATTING
UErrorCode status = U_ZERO_ERROR;
UChar getName[kDisplayNameBracketsMax];
UDisplayContext contexts[] = {
@ -1299,6 +1300,7 @@ static void TestIllegalArgumentWhenNoDataWithNoSubstitute()
}
uldn_close(ldn);
#endif
}
/*------------------------------

View file

@ -362,6 +362,7 @@ U_CDECL_END
U_CDECL_BEGIN
static void U_CALLCONV ScanfMultipleIntegers(void)
{
#if !UCONFIG_NO_FORMATTING && !UCONFIG_NO_FILE_IO
UnicodeString input = UNICODE_STRING("[1.2.3]", 7);
UnicodeString fmt = UNICODE_STRING("[%d.%d.%d]", 10);
DataDrivenLogger logger;
@ -391,6 +392,7 @@ static void U_CALLCONV ScanfMultipleIntegers(void)
log_err("error in scanfmultipleintegers test 'result' Got: %d Exp: %d\n",
result, expectedResult);
}
#endif
}
U_CDECL_END
@ -732,8 +734,8 @@ static void addAllTests(TestNode** root) {
addTest(root, &DataDrivenPrintf, "datadriv/DataDrivenPrintf");
addTest(root, &DataDrivenPrintfPrecision, "datadriv/DataDrivenPrintfPrecision");
addTest(root, &DataDrivenScanf, "datadriv/DataDrivenScanf");
#endif
addTest(root, &ScanfMultipleIntegers, "ScanfMultipleIntegers");
#endif
addStreamTests(root);
}