ICU-13667 Fixes compilation errors related to UCONFIG_NO_XXX flag variations.

X-SVN-Rev: 41494
This commit is contained in:
Norbert Runge 2018-05-31 21:53:43 +00:00
parent 404a06a0f8
commit 51688fda25
3 changed files with 8 additions and 1 deletions

View file

@ -40,7 +40,9 @@ extern IntlTest *createSimpleFormatterTest();
extern IntlTest *createUnifiedCacheTest();
extern IntlTest *createQuantityFormatterTest();
extern IntlTest *createPluralMapTest();
#if !UCONFIG_NO_FORMATTING
extern IntlTest *createStaticUnicodeSetsTest();
#endif
#define CASE(id, test) case id: \
@ -138,11 +140,13 @@ void IntlTestUtilities::runIndexedTest( int32_t index, UBool exec, const char* &
break;
case 24:
name = "StaticUnicodeSetsTest";
#if !UCONFIG_NO_FORMATTING
if (exec) {
logln("TestSuite StaticUnicodeSetsTest---"); logln();
LocalPointer<IntlTest> test(createStaticUnicodeSetsTest());
callTest(*test, par);
}
#endif
break;
default: name = ""; break; //needed to end loop
}

View file

@ -1534,6 +1534,7 @@ void StringCaseTest::TestInPlaceTitle() {
assertEquals("u_strToTitle(in-place) length", u_strlen(expected), length);
assertEquals("u_strToTitle(in-place)", expected, s);
}
#endif
void StringCaseTest::TestCaseMapEditsIteratorDocs() {
IcuTestErrorCode status(*this, "TestCaseMapEditsIteratorDocs");
@ -1684,4 +1685,4 @@ void StringCaseTest::TestCaseMapEditsIteratorDocs() {
}
}
#endif
//#endif

View file

@ -78,8 +78,10 @@ void MultithreadTest::runIndexedTest( int32_t index, UBool exec,
TESTCASE_AUTO(TestAnyTranslit);
TESTCASE_AUTO(TestConditionVariables);
TESTCASE_AUTO(TestUnifiedCache);
#if !UCONFIG_NO_TRANSLITERATION
TESTCASE_AUTO(TestBreakTranslit);
TESTCASE_AUTO(TestIncDec);
#endif /* #if !UCONFIG_NO_TRANSLITERATION */
TESTCASE_AUTO_END
}