sw/qa/extras/uiwriter/uiwriter3.cxx | 2 ++ 1 file changed, 2 insertions(+)
New commits: commit 9027920783dd04db925c41b559abe6442cedf39e Author: Noel Grandin <noelgran...@collabora.co.uk> AuthorDate: Mon Feb 27 16:28:23 2023 +0200 Commit: Noel Grandin <noel.gran...@collabora.co.uk> CommitDate: Mon Feb 27 17:23:36 2023 +0000 improve reliability of CppunitTest_sw_uiwriter3 something in the paste stuff seems to need UI events to be processed Change-Id: Idf10a240ff049bd52873296619f8f820142fda7f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/147918 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk> diff --git a/sw/qa/extras/uiwriter/uiwriter3.cxx b/sw/qa/extras/uiwriter/uiwriter3.cxx index 4ea3ba0b20c2..df6ef8268df3 100644 --- a/sw/qa/extras/uiwriter/uiwriter3.cxx +++ b/sw/qa/extras/uiwriter/uiwriter3.cxx @@ -2085,6 +2085,8 @@ CPPUNIT_TEST_FIXTURE(SwUiWriterTest3, testTdf107975) TransferableDataHelper aHelper(xTransfer); SwTransferable::Paste(*pWrtShell, aHelper); } + // the following line makes the test more reliable, no idea why + Scheduler::ProcessEventsToIdle(); // without the fix, it crashes CPPUNIT_ASSERT_EQUAL(sal_Int32(2), xIndexAccess->getCount());