summaryrefslogtreecommitdiff
path: root/emfio
diff options
context:
space:
mode:
authorIlmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>2021-10-15 11:53:03 +0300
committerMiklos Vajna <vmiklos@collabora.com>2021-10-15 16:22:14 +0200
commit463d261e3509cc857e248d8bd5787a45d385a646 (patch)
tree3edd79df5d07d107af481ff77363a2ebd36cdec0 /emfio
parent5bf4eb0f5e20a8c24e37e68f47988b3d9b29c570 (diff)
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>
Diffstat (limited to 'emfio')
-rw-r--r--emfio/qa/cppunit/emf/EmfImportTest.cxx3
1 files changed, 2 insertions, 1 deletions
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