diff options
author | Ashod Nakashian <ashod.nakashian@collabora.co.uk> | 2018-11-11 16:54:59 -0500 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2019-10-02 16:50:13 +0200 |
commit | 13fb343e3c48439c6cd7365f9a69ba2261885beb (patch) | |
tree | ccf7033fa476b51aa1214585f1ff92045424a345 /unodevtools | |
parent | 79b27379c1cf109faeb80bc51fdd1c44df4fbfee (diff) |
LOK: disable LOKit in unit-tests only after destroying all
When we disable LOKit at the end of a unit-test, we do so
before any of the smart-pointers go out of scope. These
instances are then destroyed when LOKit is no longer active,
in spite of the fact that they were created while it was.
This leaves some dialog/window routing notifiers dangling,
which cause assertion failures and access-after-free (when
they are invoked on destruction inadvertently). The latter
issue was found with 'make CppunitTest_sd_tiledrendering
VALGRIND=memcheck'.
The fix is to move these flags to the setup and teardown
stages of cpp-unit.
Change-Id: Ic4481305ca1a5cca14d70a4ebbc820a3fdeea9cc
Reviewed-on: https://gerrit.libreoffice.org/80028
Tested-by: Jenkins
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Diffstat (limited to 'unodevtools')
0 files changed, 0 insertions, 0 deletions