diff options
author | Eike Rathke <erack@redhat.com> | 2012-08-31 18:42:58 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2012-08-31 18:50:15 +0200 |
commit | b75664ce3ceb0673f61cb5320b1e8b44f1b805d1 (patch) | |
tree | 77107a40fa4d360f0cbedca32656dde46dc0abeb | |
parent | b4f913b5f5c48335dc80a5322b078e1d6ac2e3fe (diff) |
testInit() with overrideDataPath() is obsolete now
Change-Id: Ic59da3ff8f86af3e74cc526b2f4c490bd144686d
-rw-r--r-- | i18npool/qa/cppunit/test_languagetag.cxx | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/i18npool/qa/cppunit/test_languagetag.cxx b/i18npool/qa/cppunit/test_languagetag.cxx index 4569e81cf159..3bb71630d40b 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() { { |