diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2019-01-17 09:07:49 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2019-01-17 13:17:47 +0100 |
commit | b122aae83e0fb29cbf36d536ace69c0bb39beb54 (patch) | |
tree | 24aabd0a74feb262264c5de68eb56352f57546f6 /editeng | |
parent | eb5f725c3eceec7221b058e1479147883eeb38e4 (diff) |
Fix rtl_DoubleLocking::getValue_002 test
At least <https://ci.libreoffice.org//job/lo_tb_master_win/20394/> once failed
with
> Value in Thread #1 is 0
> Value in Thread #2 is 5
> C:/cygwin/home/tdf/lode/jenkins/workspace/lo_tb_master_win/sal/qa/rtl/doublelock/rtl_doublelocking.cxx:202:rtl_DoubleLocking::getValue::getValue_002
> assertion failed
> - Expression: nValueOK != 0
> - getValue() failed, wrong value expected.
and there is indeed no guarantee that either of the OGetThreads has already been
through its while loop by the time the main thread calls terminate(). So make
execution of the threads deterministic (and take out the sleeps that are no
longer necessary, and use the now-deterministic expected values in the result
checks).
Change-Id: I61726906f646ffae7a21b1e08b1d973a4e51265b
Reviewed-on: https://gerrit.libreoffice.org/66494
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'editeng')
0 files changed, 0 insertions, 0 deletions