From 463d261e3509cc857e248d8bd5787a45d385a646 Mon Sep 17 00:00:00 2001 From: Ilmari Lauhakangas Date: Fri, 15 Oct 2021 11:53:03 +0300 Subject: 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 --- emfio/qa/cppunit/emf/EmfImportTest.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'emfio') 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 -- cgit