The .uno:DBViewTables and .uno:DBViewQueries commands are executed asynchronously by posting an event to the main thread from OApplicationController. This creates a race condition for the test where the following call to .uno:SelectAll silently fails if the event is not processed before the command is dispatched. After that the attempt to open a new subcomponent fails, the OnLoad event is never sent and the test gets stuck in an infinite loop until the kill-wrapper kills it. This happens for example in the following build log: https://ci.libreoffice.org/job/gerrit_linux_clang_dbgutil/193243/console I think I can artificially reproduce the problem locally by adding a sleep in OApplicationController::OnSelectContainer and at least in that case this patch appears to fix it. It just makes the tests wait until the main thread is idle after issuing the commands to switch the view. Change-Id: If8698114c30cf4219310a9c1b2a2bb365debea8c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/194376 Reviewed-by: Neil Roberts <bpeeluk@yahoo.co.uk> Tested-by: Jenkins
Database Access Tools for LibreOffice Base DB Apps
Database access tools, for base database application
Builds on top of drivers in connectivity.