fix test on i686

f41
David Tardon 8 years ago
parent b99e220536
commit 03df8d90f4

@ -0,0 +1,26 @@
From b63a2f52d95243aef4660b2d4573f0e149eeb9a6 Mon Sep 17 00:00:00 2001
From: David Tardon <dtardon@redhat.com>
Date: Wed, 22 Feb 2017 15:03:19 -0500
Subject: [PATCH] fix test on i686
Change-Id: Ib9dafdfd76175cc6bbcd94596f7a7bd8b924ed34
---
src/test/IWORKTransformationTest.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/test/IWORKTransformationTest.cpp b/src/test/IWORKTransformationTest.cpp
index 77f0b27..5e96e60 100644
--- a/src/test/IWORKTransformationTest.cpp
+++ b/src/test/IWORKTransformationTest.cpp
@@ -232,7 +232,7 @@ void IWORKTransformationTest::testInverseOperations()
CPPUNIT_ASSERT(scale(2, 1) * scale(0.5, 1) == eye);
CPPUNIT_ASSERT(scale(1, 2) * scale(1, 0.5) == eye);
- CPPUNIT_ASSERT(scale(3, 2) * scale(1.0 / 3, 0.5) == eye);
+ CPPUNIT_ASSERT(approxEqual(scale(3, 2) * scale(1.0 / 3, 0.5), eye));
// CPPUNIT_ASSERT(shear() == eye);
--
2.11.1

@ -32,6 +32,8 @@ BuildRequires: pkgconfig(zlib)
Patch0: 0001-Allow-building-with-mdds-1.2.patch
Patch1: 0001-make-the-mdds-test-forward-compatible.patch
Patch2: 0001-drop-test-that-violates-Unicode-tr-35.patch
# fixed in a different way upstream
Patch3: 0001-fix-test-on-i686.patch
%description
%{name} is library for import of documents from Apple iWork applications
@ -95,7 +97,10 @@ install -m 0644 key2*.1 numbers2*.1 pages2*.1 %{buildroot}/%{_mandir}/man1
%check
export LD_LIBRARY_PATH=%{buildroot}/%{_libdir}${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
make %{?_smp_mflags} check
if ! make %{?_smp_mflags} check; then
cat src/test/*.log
exit 1
fi
%files
%doc AUTHORS FEATURES NEWS README

Loading…
Cancel
Save