[Libreoffice-commits] core.git: Branch 'distro/collabora/cp-6.0' - sw/qa

Ashod Nakashian (via logerrit) logerrit at kemper.freedesktop.org
Tue May 14 12:55:40 UTC 2019


 sw/qa/extras/tiledrendering/tiledrendering.cxx |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 31405b20fed5f3e98be25501a25e25963f3102f9
Author:     Ashod Nakashian <ashod.nakashian at collabora.co.uk>
AuthorDate: Sat May 11 12:30:36 2019 -0400
Commit:     Andras Timar <andras.timar at collabora.com>
CommitDate: Tue May 14 14:54:42 2019 +0200

    CppunitTest_sw_tiledrendering: close the document while LOK is still active
    
    When we destroy the document without LOK we leak the LOK Notifier
    subsystem, which doesn't get destroyed, since LOK is inavtive by
    then.
    
    Though it's not entirely clear why only this test suffered this
    issue, I avoided making unwarranted changes without reason
    (i.e. failing tests).
    
    Change-Id: Ib098b8ff3c828cb94a55d1f8cd1f0b010240a749

diff --git a/sw/qa/extras/tiledrendering/tiledrendering.cxx b/sw/qa/extras/tiledrendering/tiledrendering.cxx
index 56e947813d99..5a623ab34f04 100644
--- a/sw/qa/extras/tiledrendering/tiledrendering.cxx
+++ b/sw/qa/extras/tiledrendering/tiledrendering.cxx
@@ -2406,6 +2406,8 @@ void SwTiledRenderingTest::testDeselectCustomShape()
     pXTextDocument->postMouseEvent(LOK_MOUSEEVENT_MOUSEBUTTONUP, aStart.getX(), aStart.getY(), 1, MOUSE_LEFT, 0);
     Scheduler::ProcessEventsToIdle();
     CPPUNIT_ASSERT_EQUAL(static_cast<size_t>(0), pWrtShell->GetDrawView()->GetMarkedObjectList().GetMarkCount());
+
+    comphelper::LibreOfficeKit::setActive(false);
 }
 
 void SwTiledRenderingTest::testSemiTransparent()


More information about the Libreoffice-commits mailing list