diff options
author | Jan-Marek Glogowski <glogow@fbihome.de> | 2017-10-06 12:53:05 +0200 |
---|---|---|
committer | Jan-Marek Glogowski <glogow@fbihome.de> | 2017-10-06 19:21:19 +0200 |
commit | 141fe1c5e7fbf67a083b34e49e19b6ea78a0eb2b (patch) | |
tree | af5fe19bee951a0987f742971e2f82e1b3f20c3e /vcl | |
parent | f4cbd31465d3737855e694b7341fb3bc063d63c4 (diff) |
Process all pending events during Cppunit setUp
Larger unit tests collect a lot of events, which are just processed
on shutdown. But since the Scheduler is just an unsorted linked
list, processing these in order is O(n^2) for lookup, which really
adds up, e.g. sw_ooxmlexport8 has 35047 tasks on shutdown.
So this just processes all pending events before running each unit
test.
Also adds missing spellchecking components to some calc tests.
Change-Id: Icf12146015afc17a1f52f79c18f248b72650ad46
Reviewed-on: https://gerrit.libreoffice.org/43199
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Jan-Marek Glogowski <glogow@fbihome.de>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/app/scheduler.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/vcl/source/app/scheduler.cxx b/vcl/source/app/scheduler.cxx index 5c1b1bc8f5f4..8fd26ec79a55 100644 --- a/vcl/source/app/scheduler.cxx +++ b/vcl/source/app/scheduler.cxx @@ -105,7 +105,8 @@ void Scheduler::ImplDeInitScheduler() ++nTasks; pSchedulerData = pSchedulerData->mpNext; } - SAL_INFO( "vcl.schedule.deinit", "DeInit the scheduler - tasks: " << nTasks ); + SAL_INFO( "vcl.schedule.deinit", + "DeInit the scheduler - pending tasks: " << nTasks ); } // clean up all the sfx::SfxItemDisruptor_Impl Idles |