sc/qa/unit/subsequent_filters_test2.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 0e123c297ac3a6b4ea98af6834ddf847ce0a4fc5
Author:     Noel Grandin <noelgran...@collabora.co.uk>
AuthorDate: Thu Feb 23 09:04:28 2023 +0200
Commit:     Noel Grandin <noel.gran...@collabora.co.uk>
CommitDate: Thu Feb 23 10:55:16 2023 +0000

    fix test for non-default DPI
    
    Change-Id: Id3b39535ae18a5b38e57d9cacb7e3662a9c3468c
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/147498
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk>

diff --git a/sc/qa/unit/subsequent_filters_test2.cxx 
b/sc/qa/unit/subsequent_filters_test2.cxx
index 231efa018d50..2b634eebc052 100644
--- a/sc/qa/unit/subsequent_filters_test2.cxx
+++ b/sc/qa/unit/subsequent_filters_test2.cxx
@@ -2138,7 +2138,8 @@ CPPUNIT_TEST_FIXTURE(ScFiltersTest2, testTdf152053)
     // Without the fix in place, this test would have failed with
     // - Expected: 1162
     // - Actual  : 715
-    CPPUNIT_ASSERT_EQUAL(1162, nWidth);
+    // tolerance is for windows machines with non-default DPI
+    CPPUNIT_ASSERT_DOUBLES_EQUAL(1162, nWidth, 10);
 }
 
 CPPUNIT_TEST_FIXTURE(ScFiltersTest2, testPreviewMissingObjLink)

Reply via email to