[Libreoffice-commits] .: i18npool/qa

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Fri Aug 31 09:50:35 PDT 2012


 i18npool/qa/cppunit/test_languagetag.cxx |   23 -----------------------
 1 file changed, 23 deletions(-)

New commits:
commit b75664ce3ceb0673f61cb5320b1e8b44f1b805d1
Author: Eike Rathke <erack at redhat.com>
Date:   Fri Aug 31 18:42:58 2012 +0200

    testInit() with overrideDataPath() is obsolete now
    
    Change-Id: Ic59da3ff8f86af3e74cc526b2f4c490bd144686d

diff --git a/i18npool/qa/cppunit/test_languagetag.cxx b/i18npool/qa/cppunit/test_languagetag.cxx
index 4569e81..3bb7163 100644
--- a/i18npool/qa/cppunit/test_languagetag.cxx
+++ b/i18npool/qa/cppunit/test_languagetag.cxx
@@ -40,36 +40,13 @@ public:
     TestLanguageTag() {}
     virtual ~TestLanguageTag() {}
 
-    void testInit();
     void testAllTags();
 
     CPPUNIT_TEST_SUITE(TestLanguageTag);
-    CPPUNIT_TEST(testInit);
     CPPUNIT_TEST(testAllTags);
     CPPUNIT_TEST_SUITE_END();
 };
 
-void TestLanguageTag::testInit()
-{
-#if USE_LIBLANGTAG && !defined(SYSTEM_LIBLANGTAG)
-    // file:///$SRCDIR/solver/$INPATH/share/liblangtag
-    // file:///$OUTDIR/share/liblangtag
-    OUStringBuffer aBuf(128);
-    const char* pEnv = getenv("OUTDIR");
-    CPPUNIT_ASSERT_MESSAGE("No $OUTDIR", pEnv);
-    aBuf.append( "file:///").append( OStringToOUString( pEnv, RTL_TEXTENCODING_UTF8)).append( "/share/liblangtag");
-    OUString aURL( aBuf.makeStringAndClear());
-    OUString aData( aURL);
-    aData += "/language-subtag-registry.xml";
-    osl::DirectoryItem aDirItem;
-    CPPUNIT_ASSERT_MESSAGE("liblangtag data not found",
-            osl::DirectoryItem::get( aData, aDirItem) == osl::DirectoryItem::E_None);
-    OUString aPath;
-    CPPUNIT_ASSERT( osl::FileBase::getSystemPathFromFileURL( aURL, aPath) == osl::FileBase::E_None);
-    LanguageTag::overrideDataPath( aPath);
-#endif
-}
-
 void TestLanguageTag::testAllTags()
 {
     {


More information about the Libreoffice-commits mailing list