From 8a0d0457a79836fa9d8ea8d4c48ecbf7bac2e95b Mon Sep 17 00:00:00 2001 From: Michael Meeks Date: Wed, 5 Oct 2011 16:00:44 +0100 Subject: test fix: use setUp and tearDown not constructors to init LibreOffice It turns out the constructors are all run back-to-back one per filter, and we need to init and de-init in a sensible order to make multiple tests that otherwise share the ContentBroker work properly. --- svtools/qa/cppunit/filters-test.cxx | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'svtools') diff --git a/svtools/qa/cppunit/filters-test.cxx b/svtools/qa/cppunit/filters-test.cxx index cb776d04f818..a216bc629a3a 100644 --- a/svtools/qa/cppunit/filters-test.cxx +++ b/svtools/qa/cppunit/filters-test.cxx @@ -41,7 +41,7 @@ using namespace ::com::sun::star; class SvtoolsFiltersTest : public test::FiltersTest { public: - SvtoolsFiltersTest(); + SvtoolsFiltersTest() : FiltersTest(true, false) {} virtual bool load(const rtl::OUString &, const rtl::OUString &rURL, const rtl::OUString &); @@ -79,11 +79,6 @@ void SvtoolsFiltersTest::testCVEs() rtl::OUString()); } -SvtoolsFiltersTest::SvtoolsFiltersTest() - : FiltersTest(true, false) -{ -} - CPPUNIT_TEST_SUITE_REGISTRATION(SvtoolsFiltersTest); CPPUNIT_PLUGIN_IMPLEMENT(); -- cgit v1.2.3