sw/qa/extras/uiwriter/uiwriter4.cxx |    8 ++++++++
 1 file changed, 8 insertions(+)

New commits:
commit a92965d51887b552d912304fbf9efd6d5015a82a
Author:     Miklos Vajna <vmik...@collabora.com>
AuthorDate: Wed May 24 08:14:26 2023 +0200
Commit:     Miklos Vajna <vmik...@collabora.com>
CommitDate: Wed May 24 09:02:12 2023 +0200

    CppunitTest_sw_uiwriter4: disable testTdf107975 on Windows
    
    E.g. <https://gerrit.libreoffice.org/c/core/+/152138> failed 3 times in
    a row, always on this test, always on Windows.
    
    Also <https://gerrit.libreoffice.org/c/core/+/152170> failed 2 times in
    a row, again only on this test, only on Windows.
    
    At the same time, it doesn't fail reliably locally, so hard to debug the
    root cause.
    
    Change-Id: Iaf257d2b7ef5f46f6275b6ebcebc2156f4e58d04
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/152180
    Reviewed-by: Miklos Vajna <vmik...@collabora.com>
    Tested-by: Jenkins

diff --git a/sw/qa/extras/uiwriter/uiwriter4.cxx 
b/sw/qa/extras/uiwriter/uiwriter4.cxx
index b692becbfcf3..f1b3336a8f6b 100644
--- a/sw/qa/extras/uiwriter/uiwriter4.cxx
+++ b/sw/qa/extras/uiwriter/uiwriter4.cxx
@@ -2345,6 +2345,13 @@ CPPUNIT_TEST_FIXTURE(SwUiWriterTest4, 
testTdf113877_blank_bold_on)
 
 CPPUNIT_TEST_FIXTURE(SwUiWriterTest4, testTdf107975)
 {
+// Disable on Windows: fails quite a lot on multiple Jenkins slaves, but 
entirely reliably,
+// with:
+// sw/qa/extras/uiwriter/uiwriter4.cxx(2407) : error : Assertion
+// - Expected: 2
+// - Actual  : 1
+// i.e. the xIndexAccess->getCount() line.
+#if !defined(_WIN32)
     // This test also covers tdf#117185 tdf#110442
 
     createSwDoc("tdf107975.odt");
@@ -2416,6 +2423,7 @@ CPPUNIT_TEST_FIXTURE(SwUiWriterTest4, testTdf107975)
     CPPUNIT_ASSERT_EQUAL(sal_Int32(2), xIndexAccess->getCount());
     dispatchCommand(mxComponent, ".uno:Undo", {});
     CPPUNIT_ASSERT_EQUAL(sal_Int32(1), xIndexAccess->getCount());
+#endif
 }
 
 CPPUNIT_TEST_FIXTURE(SwUiWriterTest4, testTdf113877_blank_bold_off)

Reply via email to