Kaydet (Commit) 49e62852 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Remove broken test

...introduced with 26be5f21 "unotools: don't go
belly-up if temp dir is wrong or empty".  At least Flatpak builds can create a
/not/found/dir directory just fine.

Change-Id: I73115ac99498ac584be77153ef66bba3036392c3
Reviewed-on: https://gerrit.libreoffice.org/47267Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarStephan Bergmann <sbergman@redhat.com>
üst c576312a
...@@ -27,7 +27,6 @@ $(eval $(call gb_CppunitTest_add_exception_objects,sal_osl,\ ...@@ -27,7 +27,6 @@ $(eval $(call gb_CppunitTest_add_exception_objects,sal_osl,\
$(eval $(call gb_CppunitTest_use_libraries,sal_osl,\ $(eval $(call gb_CppunitTest_use_libraries,sal_osl,\
sal \ sal \
utl \
)) ))
# the test uses the library created by Module_DLL # the test uses the library created by Module_DLL
......
...@@ -32,9 +32,6 @@ ...@@ -32,9 +32,6 @@
#include <cppunit/extensions/HelperMacros.h> #include <cppunit/extensions/HelperMacros.h>
#include <cppunit/plugin/TestPlugIn.h> #include <cppunit/plugin/TestPlugIn.h>
#include <unotools/tempfile.hxx>
namespace osl_test_file namespace osl_test_file
{ {
...@@ -140,30 +137,8 @@ void oldtestfile::test_file_004() ...@@ -140,30 +137,8 @@ void oldtestfile::test_file_004()
#endif #endif
} }
class TempFileTest : public CppUnit::TestFixture
{
public:
TempFileTest() {}
void SetTempNameBaseDirectory()
{ // only testing: of not found the directory
OUString path = utl::TempFile::SetTempNameBaseDirectory("file:///not/found/dir");
CPPUNIT_ASSERT_MESSAGE("SetTempNameBaseDirectory must give a empty string back",
path.isEmpty());
}
CPPUNIT_TEST_SUITE(TempFileTest);
CPPUNIT_TEST(SetTempNameBaseDirectory);
CPPUNIT_TEST_SUITE_END();
};
} // namespace osl_test_file } // namespace osl_test_file
CPPUNIT_TEST_SUITE_REGISTRATION( osl_test_file::oldtestfile); CPPUNIT_TEST_SUITE_REGISTRATION( osl_test_file::oldtestfile);
CPPUNIT_TEST_SUITE_REGISTRATION( osl_test_file::TempFileTest);
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment