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 <vmiklos@collabora.com>
diff --git a/emfio/qa/cppunit/emf/EmfImportTest.cxx b/emfio/qa/cppunit/emf/EmfImportTest.cxx
index c24b3d8..6b16770 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