From b92890a5d8162cc59793589c4c98de59b2cb53a7 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Thu, 8 Sep 2011 09:47:31 +0100 Subject: so *that's* where the hello/world we're coming from --- sal/qa/osl/file/osl_File.cxx | 27 +++++---------------------- 1 file changed, 5 insertions(+), 22 deletions(-) (limited to 'sal/qa/osl') diff --git a/sal/qa/osl/file/osl_File.cxx b/sal/qa/osl/file/osl_File.cxx index 2cb0bb3e83fe..a1683e196093 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(); -- cgit