Further attempt to make this test run on iOS

This commit is contained in:
Tor Lillqvist 2011-08-21 17:44:30 +03:00
parent b6a9f3560a
commit fb9f4d8129

View file

@ -119,8 +119,24 @@ extern "C" CppUnitTestPlugIn
SAL_IMPLEMENT_MAIN() {
putenv("UNO_SERVICES=services.rdb");
putenv("UNO_TYPES=types.rdb udkapi.rdb");
rtl::OUString sServices(RTL_CONSTASCII_USTRINGPARAM("UNO_SERVICES"));
rtl::OUString sTypes(RTL_CONSTASCII_USTRINGPARAM("UNO_TYPES"));
rtl::OUString sBrandLocation(RTL_CONSTASCII_USTRINGPARAM("$BRAND_BASE_DIR/"));
rtl::Bootstrap::expandMacros(sBrandLocation);
rtl::OUString sServicesValue = rtl::OUStringBuffer(sBrandLocation)
. append(rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("services.rdb"))).makeStringAndClear();
osl_setEnvironment(sServices.pData, sServicesValue.pData);
rtl::OUString sTypesValue = rtl::OUStringBuffer(sBrandLocation)
.append(rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("types.rdb")))
.append(rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(" ")))
.append(sBrandLocation)
.append(rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("udkapi.rdb")));
osl_setEnvironment(sTypes.pData, sTypesValue.pData);
TestPlugInSignature plugs[] = {
cppunitTest_i18npool_breakiterator,
NULL