Files
odfstudio/uitest
Neil Roberts 911502799b uitest/EventListener: Set executed flag after storing event details
Most of the uses of the EventListener wait for the executed flag to be
set in a check-sleep loop. If the code then tries to access properties
of the listener such as the supplements array then there was a race
condition where the waiting thread might wake up in between the time
that the executed flag is set and the details are filled in. This can
happen for example in open_subcomponent_through_command. I can replicate
this problem locally by adding a short sleep after setting executed to
True.

This is likely the cause of build failures such as the following:

https://ci.libreoffice.org/job/gerrit_linux_clang_dbgutil/194139/

This patch just changes the order so that the executed flag is only set
after the event details are filled in.

Change-Id: I9ba108bc2e2fa084fd5d9e3048e34203feaa74a0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/195483
Tested-by: Jenkins
Reviewed-by: Neil Roberts <bpeeluk@yahoo.co.uk>
2025-12-12 09:01:14 +01:00
..
…
…

UI Testing Framework

The code for the UI testing framework and the UI tests.

The UI tests run on a dedicated desktop on Windows, to not interfere with the interactive session. To make them run on the current (active) desktop, define the following environment variable: LIBO_TEST_DEFAULT_DESKTOP