diff options
author | Michael Meeks <michael.meeks@suse.com> | 2011-10-05 16:00:44 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@suse.com> | 2011-10-05 16:02:28 +0100 |
commit | 8a0d0457a79836fa9d8ea8d4c48ecbf7bac2e95b (patch) | |
tree | 242935d062542ef2993a4e0bc3aeb3f188bef1a4 /svtools/qa/cppunit | |
parent | 9767483eea7800aadd18b4489069ad633ce7a79c (diff) |
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.
Diffstat (limited to 'svtools/qa/cppunit')
-rw-r--r-- | svtools/qa/cppunit/filters-test.cxx | 7 |
1 files changed, 1 insertions, 6 deletions
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(); |