Kaydet (Commit) 26be5f21 authored tarafından Juergen Funk's avatar Juergen Funk Kaydeden (comit) Thorsten Behrens

unotools: don't go belly-up if temp dir is wrong or empty

When a wrong temp directory was set (e.g. wrong path in xcu ist set),
you get a assert in the LO-Debug Version, this patch avoid this assertion.

Change-Id: I192f682860ad9cddf907e4b239eff36b4bd6072d
Reviewed-on: https://gerrit.libreoffice.org/46846Reviewed-by: 's avatarThorsten Behrens <Thorsten.Behrens@CIB.de>
Tested-by: 's avatarThorsten Behrens <Thorsten.Behrens@CIB.de>
üst 1b73ed91
......@@ -27,6 +27,7 @@ $(eval $(call gb_CppunitTest_add_exception_objects,sal_osl,\
$(eval $(call gb_CppunitTest_use_libraries,sal_osl,\
sal \
utl \
))
# the test uses the library created by Module_DLL
......
......@@ -32,6 +32,9 @@
#include <cppunit/extensions/HelperMacros.h>
#include <cppunit/plugin/TestPlugIn.h>
#include <unotools/tempfile.hxx>
namespace osl_test_file
{
......@@ -137,8 +140,30 @@ void oldtestfile::test_file_004()
#endif
}
class TempFileTest : public CppUnit::TestFixture
{