https://bugs.documentfoundation.org/show_bug.cgi?id=146478

--- Comment #5 from Chris Sherlock <chris.sherloc...@gmail.com> ---
So this commit changed the SAL_WARN to an assert():

https://cgit.freedesktop.org/libreoffice/core/commit/framework/source/services/desktop.cxx?id=6e35794cad555485955c3b43593497dcdbf29840

author  Noel Grandin <noel.gran...@collabora.co.uk>     2020-07-27 11:06:41
+0200
committer       Noel Grandin <noel.gran...@collabora.co.uk>     2020-07-30
10:49:27 +0200
commit  6e35794cad555485955c3b43593497dcdbf29840 (patch)
tree    430c0299f21fb62faf6d0ba5e04410fafdda14d2
/framework/source/services/desktop.cxx
parent  a6e02f6337f038a445b858bb91bf14d1a14768e4 (diff)
terminate XDesktop properly in unit tests
So that the UNO constructor work can continue - where we need the
desktop to be disposed properly so that all UNO constructors objects
have their dispose() called, and they can clean up their global state.

We detect this case by changing a SAL_WARN to an assert in
Desktop::disposing()

(*) in ~ScTabViewShell, don't call EnterHandler, because that tries to
create EditEngine's and other stuff, which crashes
(*) Need a fake singleton so that the servicemanager calls dispose()
 on the AnalysAddIn and we can clear the global variable there.

Change-Id: Id13b51e17afc16fcbbc65d64281cdf847e4a58cf
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/99640
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk>

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to