emfio/qa/cppunit/emf/EmfImportTest.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
New commits: commit 463d261e3509cc857e248d8bd5787a45d385a646 Author: Ilmari Lauhakangas <ilmari.lauhakan...@libreoffice.org> AuthorDate: Fri Oct 15 11:53:03 2021 +0300 Commit: Miklos Vajna <vmik...@collabora.com> CommitDate: Fri Oct 15 16:22:14 2021 +0200 CppunitTest_emfio_emf: add some tolerance in TestPdfInEmf Change-Id: I1fc1b3863fd5b5472e700a5432fb4f9d353a054f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123650 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmik...@collabora.com> diff --git a/emfio/qa/cppunit/emf/EmfImportTest.cxx b/emfio/qa/cppunit/emf/EmfImportTest.cxx index c24b3d8e5856..6b16770d8d71 100644 --- a/emfio/qa/cppunit/emf/EmfImportTest.cxx +++ b/emfio/qa/cppunit/emf/EmfImportTest.cxx @@ -1263,7 +1263,8 @@ void Test::TestPdfInEmf() // - Actual : 0 // i.e. there was no size hint, the shape with 14cm height had a bitmap-from-PDF fill, the PDF // height was only 5cm, so it looked blurry. - CPPUNIT_ASSERT_EQUAL(14321.0, pVectorGraphicData->getSizeHint().getY()); + // Tolerance was added later based on results on different systems. + CPPUNIT_ASSERT_LESSEQUAL(1.0, abs(14321.0 - pVectorGraphicData->getSizeHint().getY())); // Without the accompanying fix in place, this test would have failed with: // - Expected: 0