Further attempt to make this test run on iOS
This commit is contained in:
parent
b6a9f3560a
commit
fb9f4d8129
1 changed files with 18 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue