diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-08-03 15:46:37 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-08-03 21:51:00 +0200 |
commit | ece77815300de02ba8fcd9ef6d135c72f3fd9e34 (patch) | |
tree | 1c58dfbeed150c8b45d9d6d35f5a471a127b18c5 /sc/qa | |
parent | 7c403473712d847bc2127cc01af3aed24c75f55d (diff) |
fix leak in ScCacheTest
and put the init/destruct in constructor/destructor instead
of setup(), we want this to run once, not for every test method.
Change-Id: I7d5fcdd2974677f1509048c16fb40d03dff289c7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100004
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/qa')
-rw-r--r-- | sc/qa/unit/datacache.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sc/qa/unit/datacache.cxx b/sc/qa/unit/datacache.cxx index 462408d7c651..6440e9fe9428 100644 --- a/sc/qa/unit/datacache.cxx +++ b/sc/qa/unit/datacache.cxx @@ -31,12 +31,13 @@ public: CPPUNIT_TEST_SUITE_END(); public: - virtual void setUp() override + ScCacheTest() { utl::ConfigManager::EnableFuzzing(); ScDLL::Init(); ScGlobal::Init(); } + ~ScCacheTest() { ScGlobal::Clear(); } }; void ScCacheTest::testCacheSimple() |