diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2016-03-28 21:43:53 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2016-03-29 10:04:24 +0000 |
commit | 33482731bf0dc8736112f703f14a059231091670 (patch) | |
tree | 55c0ad205ecccee08d2ecf05d849b65cd53c10f5 /sal | |
parent | 49152948ddfb1a457ab2fc149fcede57dc2c255b (diff) |
sal: re-enable most getSystemPathFromFileURL tests.
Change-Id: If03ec4f8705b75b9d007078260ef8cca5155a8f3
Reviewed-on: https://gerrit.libreoffice.org/23576
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Tested-by: Michael Meeks <michael.meeks@collabora.com>
Diffstat (limited to 'sal')
-rw-r--r-- | sal/qa/osl/file/osl_File.cxx | 35 |
1 files changed, 22 insertions, 13 deletions
diff --git a/sal/qa/osl/file/osl_File.cxx b/sal/qa/osl/file/osl_File.cxx index 2890c5f1c152..1efaf0444f28 100644 --- a/sal/qa/osl/file/osl_File.cxx +++ b/sal/qa/osl/file/osl_File.cxx @@ -773,10 +773,11 @@ namespace osl_FileBase } void SystemPath_FileURL::getSystemPathFromFileURL_001_21() { - // rtl::OString sURL("%2f"); - rtl::OString sURL("%2F"); +#if 0 + rtl::OString sURL("%2F"); checkUNXBehaviour_getSystemPathFromFileURL(sURL, osl::FileBase::E_None, "/"); // LLA: this is may be a BUG checkWNTBehaviour_getSystemPathFromFileURL(sURL, osl::FileBase::E_INVAL, ""); +#endif } void SystemPath_FileURL::getSystemPathFromFileURL_001_22() { @@ -816,9 +817,11 @@ namespace osl_FileBase } void SystemPath_FileURL::getSystemPathFromFileURL_001_51() { +#if 0 rtl::OString sURL("file://c:/tmp"); checkUNXBehaviour_getSystemPathFromFileURL(sURL, osl::FileBase::E_None, "c:/tmp"); // LLA: this is may be a BUG checkWNTBehaviour_getSystemPathFromFileURL(sURL, osl::FileBase::E_INVAL, ""); +#endif } void SystemPath_FileURL::getSystemPathFromFileURL_001_52() { @@ -865,13 +868,15 @@ namespace osl_FileBase } void SystemPath_FileURL::getSystemPathFromFileURL_001_81() { +#if 0 rtl::OString sURL("file://~/tmp"); - char* home_path; - home_path = getenv("HOME"); - rtl::OString expResult(home_path); - expResult += "/tmp"; - checkUNXBehaviour_getSystemPathFromFileURL(sURL, osl::FileBase::E_None, expResult ); - // checkWNTBehaviour_getSystemPathFromFileURL(sURL, osl::FileBase::E_None, "\\tmp"); + char* home_path; + home_path = getenv("HOME"); + rtl::OString expResult(home_path); + expResult += "/tmp"; + checkUNXBehaviour_getSystemPathFromFileURL(sURL, osl::FileBase::E_None, expResult ); +// checkWNTBehaviour_getSystemPathFromFileURL(sURL, osl::FileBase::E_None, "\\tmp"); +#endif } void SystemPath_FileURL::getSystemPathFromFileURL_001_9() { @@ -888,9 +893,11 @@ namespace osl_FileBase void SystemPath_FileURL::getSystemPathFromFileURL_001_92() { +#if 0 rtl::OString sURL("ca@#;+.,$///78no%01ni..name"); checkUNXBehaviour_getSystemPathFromFileURL(sURL, osl::FileBase::E_None, ""); checkWNTBehaviour_getSystemPathFromFileURL(sURL, osl::FileBase::E_INVAL, ""); +#endif } //normal legal case @@ -1219,12 +1226,14 @@ namespace osl_FileBase CPPUNIT_TEST_SUITE_END(); };// class createTempFile - CPPUNIT_TEST_SUITE_NAMED_REGISTRATION( osl_FileBase::getAbsoluteFileURL, "osl_FileBase" ); +// FIXME: remove the _disabled to enable: + CPPUNIT_TEST_SUITE_NAMED_REGISTRATION( osl_FileBase::getAbsoluteFileURL, "osl_FileBase_disabled" ); CPPUNIT_TEST_SUITE_NAMED_REGISTRATION( osl_FileBase::SystemPath_FileURL, "osl_FileBase" ); - // CPPUNIT_TEST_SUITE_NAMED_REGISTRATION( osl_FileBase::getFileURLFromSystemPath, "osl_FileBase" ); - CPPUNIT_TEST_SUITE_NAMED_REGISTRATION( osl_FileBase::searchFileURL, "osl_FileBase" ); - CPPUNIT_TEST_SUITE_NAMED_REGISTRATION( osl_FileBase::getTempDirURL, "osl_FileBase" ); - CPPUNIT_TEST_SUITE_NAMED_REGISTRATION( osl_FileBase::createTempFile, "osl_FileBase" ); + CPPUNIT_TEST_SUITE_NAMED_REGISTRATION( osl_FileBase::searchFileURL, "osl_FileBase_disabled" ); + CPPUNIT_TEST_SUITE_NAMED_REGISTRATION( osl_FileBase::getTempDirURL, "osl_FileBase_disabled" ); + CPPUNIT_TEST_SUITE_NAMED_REGISTRATION( osl_FileBase::createTempFile, "osl_FileBase_disabled" ); + + CPPUNIT_REGISTRY_ADD_TO_DEFAULT( "osl_FileBase" ); }// namespace osl_FileBase namespace osl_FileStatus |