sw/qa/extras/uiwriter/uiwriter3.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 5c49a9c98620153e206a3aabc2a89ef19c0a1046
Author:     Xisco Fauli <xiscofa...@libreoffice.org>
AuthorDate: Mon Feb 14 15:44:37 2022 +0100
Commit:     Michael Stahl <michael.st...@allotropia.de>
CommitDate: Mon Feb 14 17:18:47 2022 +0100

    sw_uiwriter3: just check the number of pages is the same...
    
    ... before and after, sometimes it might be 6 instead
    of 7 and in this test we just care about it not crashing
    
    Change-Id: Ia358517f4b0c566199af368da51ba385845218a4
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/129916
    Tested-by: Jenkins
    Reviewed-by: Michael Stahl <michael.st...@allotropia.de>

diff --git a/sw/qa/extras/uiwriter/uiwriter3.cxx 
b/sw/qa/extras/uiwriter/uiwriter3.cxx
index 6a53c94a5091..84e65489f325 100644
--- a/sw/qa/extras/uiwriter/uiwriter3.cxx
+++ b/sw/qa/extras/uiwriter/uiwriter3.cxx
@@ -80,7 +80,7 @@ CPPUNIT_TEST_FIXTURE(SwUiWriterTest3, testTdf139843)
 {
     createSwDoc(DATA_DIRECTORY, "tdf139843.odt");
 
-    CPPUNIT_ASSERT_EQUAL(7, getPages());
+    int nPages = getPages();
 
     dispatchCommand(mxComponent, ".uno:SelectAll", {});
     Scheduler::ProcessEventsToIdle();
@@ -94,7 +94,7 @@ CPPUNIT_TEST_FIXTURE(SwUiWriterTest3, testTdf139843)
     dispatchCommand(mxComponent, ".uno:Paste", {});
     Scheduler::ProcessEventsToIdle();
 
-    CPPUNIT_ASSERT_EQUAL(7, getPages());
+    CPPUNIT_ASSERT_EQUAL(nPages, getPages());
 }
 
 CPPUNIT_TEST_FIXTURE(SwUiWriterTest3, testTdf145321)

Reply via email to