[Libreoffice-commits] .: sal/qa

Caolán McNamara caolan at kemper.freedesktop.org
Thu Sep 8 01:49:14 PDT 2011


 sal/qa/osl/file/osl_File.cxx |   27 +++++----------------------
 1 file changed, 5 insertions(+), 22 deletions(-)

New commits:
commit b92890a5d8162cc59793589c4c98de59b2cb53a7
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Thu Sep 8 09:47:31 2011 +0100

    so *that's* where the hello/world we're coming from

diff --git a/sal/qa/osl/file/osl_File.cxx b/sal/qa/osl/file/osl_File.cxx
index 2cb0bb3..a1683e1 100644
--- a/sal/qa/osl/file/osl_File.cxx
+++ b/sal/qa/osl/file/osl_File.cxx
@@ -6151,6 +6151,8 @@ namespace osl_Directory
 
             FileBase::RC rc = Directory::createPath(tp_url);
 
+            rm_test_path(tp_url);
+
             CPPUNIT_ASSERT_MESSAGE
             (
                 "osl_createDirectoryPath failed",
@@ -6169,6 +6171,9 @@ namespace osl_Directory
             FileBase::RC rc = Directory::createPath(tp_url, observer);
             int nDirs = observer->number_of_dirs_created();
             delete observer;
+
+            rm_test_path(tp_url);
+
             CPPUNIT_ASSERT_MESSAGE
             (
                 "osl_createDirectoryPath failed",
@@ -6220,24 +6225,6 @@ namespace osl_Directory
                 rc != FileBase::E_None
             );
         }
-
-        //##########################################
-        void with_UNC_path()
-        {
-
-            OUString tp_unc (RTL_CONSTASCII_USTRINGPARAM("\\\\Tra-1\\TRA_D\\hello\\world\\"));
-            OUString tp_url;
-            FileBase::getFileURLFromSystemPath(tp_unc, tp_url);
-
-            FileBase::RC rc = Directory::createPath(tp_url);
-
-            CPPUNIT_ASSERT_MESSAGE
-            (
-                "osl_createDirectoryPath fails with UNC path",
-                rc == FileBase::E_None
-            );
-        }
-
 #endif /* WNT */
 
     CPPUNIT_TEST_SUITE(createPath);
@@ -6246,10 +6233,6 @@ namespace osl_Directory
     CPPUNIT_TEST(with_callback);
 #ifdef WNT
     CPPUNIT_TEST(at_invalid_logical_drive);
-
-    // adapt the UNC path in method createDirectoryPath_with_UNC_path
-    // in order to run this test successfully
-    //CPPUNIT_TEST(with_UNC_path);
 #endif
     CPPUNIT_TEST_SUITE_END();
 


More information about the Libreoffice-commits mailing list