INTEGRATION: CWS native177 (1.10.10); FILE MERGED
2008/07/23 15:57:49 sb 1.10.10.1: #i92049# .override failed for non-existing files
This commit is contained in:
parent
05b56ad891
commit
521d6cbfc2
1 changed files with 12 additions and 5 deletions
|
@ -7,7 +7,7 @@
|
||||||
* OpenOffice.org - a multi-platform office productivity suite
|
* OpenOffice.org - a multi-platform office productivity suite
|
||||||
*
|
*
|
||||||
* $RCSfile: rtl_Bootstrap.cxx,v $
|
* $RCSfile: rtl_Bootstrap.cxx,v $
|
||||||
* $Revision: 1.10 $
|
* $Revision: 1.11 $
|
||||||
*
|
*
|
||||||
* This file is part of OpenOffice.org.
|
* This file is part of OpenOffice.org.
|
||||||
*
|
*
|
||||||
|
@ -769,13 +769,20 @@ namespace rtl_Bootstrap
|
||||||
}
|
}
|
||||||
|
|
||||||
void testOverride() {
|
void testOverride() {
|
||||||
rtl::OUString t(
|
rtl::OUString t1(
|
||||||
RTL_CONSTASCII_USTRINGPARAM(
|
RTL_CONSTASCII_USTRINGPARAM(
|
||||||
"${.override:$ORIGIN/" SAL_CONFIGFILE("rtl") ":ORIGIN}"));
|
"${.override:$ORIGIN/" SAL_CONFIGFILE("rtl") ":ORIGIN}"));
|
||||||
Bootstrap(t_getSourcePath("rtl")).expandMacrosFrom(t);
|
Bootstrap(t_getSourcePath("rtl")).expandMacrosFrom(t1);
|
||||||
CPPUNIT_ASSERT_MESSAGE(
|
CPPUNIT_ASSERT_MESSAGE(
|
||||||
"override",
|
"override ORIGIN",
|
||||||
t.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("direct")));
|
t1.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("direct")));
|
||||||
|
rtl::OUString t2(
|
||||||
|
RTL_CONSTASCII_USTRINGPARAM(
|
||||||
|
"${.override:$ORIGIN/" SAL_CONFIGFILE("none") ":MYVAR}"));
|
||||||
|
Bootstrap::expandMacros(t2);
|
||||||
|
CPPUNIT_ASSERT_MESSAGE(
|
||||||
|
"override MYVAR",
|
||||||
|
t2.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("src680_test")));
|
||||||
}
|
}
|
||||||
|
|
||||||
void testSection() {
|
void testSection() {
|
||||||
|
|
Loading…
Reference in a new issue