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

New commits:
commit 3978ae237073407115cce3e0af1a5734941cdaa1
Author:     Xisco Fauli <xiscofa...@libreoffice.org>
AuthorDate: Mon Feb 14 15:44:37 2022 +0100
Commit:     Thorsten Behrens <thorsten.behr...@allotropia.de>
CommitDate: Mon Sep 19 13:04:37 2022 +0200

    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>
    (cherry picked from commit 5c49a9c98620153e206a3aabc2a89ef19c0a1046)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140088
    Tested-by: Thorsten Behrens <thorsten.behr...@allotropia.de>
    Reviewed-by: Thorsten Behrens <thorsten.behr...@allotropia.de>

diff --git a/sw/qa/extras/uiwriter/uiwriter.cxx 
b/sw/qa/extras/uiwriter/uiwriter.cxx
index 007a597cf61c..a96a6652ebd6 100644
--- a/sw/qa/extras/uiwriter/uiwriter.cxx
+++ b/sw/qa/extras/uiwriter/uiwriter.cxx
@@ -4240,7 +4240,7 @@ CPPUNIT_TEST_FIXTURE(SwUiWriterTest, testTdf139843)
 {
     load(DATA_DIRECTORY, "tdf139843.odt");
 
-    CPPUNIT_ASSERT_EQUAL(7, getPages());
+    int nPages = getPages();
 
     lcl_dispatchCommand(mxComponent, ".uno:SelectAll", {});
     Scheduler::ProcessEventsToIdle();
@@ -4254,7 +4254,7 @@ CPPUNIT_TEST_FIXTURE(SwUiWriterTest, testTdf139843)
     lcl_dispatchCommand(mxComponent, ".uno:Paste", {});
     Scheduler::ProcessEventsToIdle();
 
-    CPPUNIT_ASSERT_EQUAL(7, getPages());
+    CPPUNIT_ASSERT_EQUAL(nPages, getPages());
 }
 
 CPPUNIT_TEST_FIXTURE(SwUiWriterTest, testTdf134252)

Reply via email to