diff options
author | Vladimir Glazounov <vg@openoffice.org> | 2008-10-01 09:04:58 +0000 |
---|---|---|
committer | Vladimir Glazounov <vg@openoffice.org> | 2008-10-01 09:04:58 +0000 |
commit | 3b2b8f91ff22b93050b9b1aa3da5bd4359182499 (patch) | |
tree | 3e37aa664496da562640735b168da4dcc08bb737 /sal/qa | |
parent | 257b3205cae2665a96492b806df10faf884a4e99 (diff) |
CWS-TOOLING: integrate CWS sb93
Diffstat (limited to 'sal/qa')
-rw-r--r-- | sal/qa/rtl/bootstrap/rtl_Bootstrap.cxx | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/sal/qa/rtl/bootstrap/rtl_Bootstrap.cxx b/sal/qa/rtl/bootstrap/rtl_Bootstrap.cxx index 1e791ba2eaf1..85efcfa55b34 100644 --- a/sal/qa/rtl/bootstrap/rtl_Bootstrap.cxx +++ b/sal/qa/rtl/bootstrap/rtl_Bootstrap.cxx @@ -7,7 +7,7 @@ * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: rtl_Bootstrap.cxx,v $ - * $Revision: 1.11 $ + * $Revision: 1.10.20.2 $ * * This file is part of OpenOffice.org. * @@ -785,6 +785,16 @@ namespace rtl_Bootstrap t2.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("src680_test"))); } + void testNonexisting() { + rtl::OUString t( + RTL_CONSTASCII_USTRINGPARAM( + "${$ORIGIN/" SAL_CONFIGFILE("none") ":MYVAR}")); + Bootstrap::expandMacros(t); + CPPUNIT_ASSERT_MESSAGE( + "nonexisting", + t.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("src680_test"))); + } + void testSection() { rtl::OUStringBuffer b; b.appendAscii(RTL_CONSTASCII_STRINGPARAM("${")); @@ -817,6 +827,7 @@ namespace rtl_Bootstrap CPPUNIT_TEST(testRecursion); CPPUNIT_TEST(testLink); CPPUNIT_TEST(testOverride); + CPPUNIT_TEST(testNonexisting); CPPUNIT_TEST(testSection); CPPUNIT_TEST_SUITE_END(); }; // class expandMacrosFrom |