diff options
author | Michael Stahl <michael.stahl@allotropia.de> | 2024-05-14 11:24:35 +0200 |
---|---|---|
committer | Michael Stahl <michael.stahl@allotropia.de> | 2024-05-14 15:13:25 +0200 |
commit | 9aa22abcbdfe42e516ecc791605e3a1b7ef80327 (patch) | |
tree | 1782741cdbbf2bf7ed3a5e5fd5400ec4ef6d3150 /sw | |
parent | 461dac862c6e8ceb71d4b46ae43c9073b344fcea (diff) |
sw: make testTdf131963 less strict
Asserting number of pages is rather questionable because any number of
things can change that and you will spend days debugging that.
For some reason this test has 12 pages on my libreoffice-24-2 branch
build and 11 pages on my master build, either of which are clearly
better than the 2 pages result of the bug that was fixed there.
Change-Id: Ie1e97d5cc973f317a2d6ca8a7d13822385b134f4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167627
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/qa/extras/uiwriter/uiwriter3.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/qa/extras/uiwriter/uiwriter3.cxx b/sw/qa/extras/uiwriter/uiwriter3.cxx index b257e25ae31c..20b853b01468 100644 --- a/sw/qa/extras/uiwriter/uiwriter3.cxx +++ b/sw/qa/extras/uiwriter/uiwriter3.cxx @@ -1333,7 +1333,7 @@ CPPUNIT_TEST_FIXTURE(SwUiWriterTest3, testTdf131963) { createSwDoc("tdf131963.docx"); - CPPUNIT_ASSERT_EQUAL(11, getPages()); + CPPUNIT_ASSERT(11 == getPages() || 12 == getPages()); dispatchCommand(mxComponent, ".uno:SelectAll", {}); @@ -1348,7 +1348,7 @@ CPPUNIT_TEST_FIXTURE(SwUiWriterTest3, testTdf131963) // Without the fix in place, this test would have crashed here // tdf#133169: without the fix in place, it would have been 2 instead of 11 - CPPUNIT_ASSERT_EQUAL(11, getPages()); + CPPUNIT_ASSERT(11 == getPages() || 12 == getPages()); } CPPUNIT_TEST_FIXTURE(SwUiWriterTest3, testTdf132596) |