summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sci-astronomy/casacore/files/casacore-2.3.0-loose-some-tests-tFFTServer-tests.patch')
-rw-r--r--sci-astronomy/casacore/files/casacore-2.3.0-loose-some-tests-tFFTServer-tests.patch36
1 files changed, 36 insertions, 0 deletions
diff --git a/sci-astronomy/casacore/files/casacore-2.3.0-loose-some-tests-tFFTServer-tests.patch b/sci-astronomy/casacore/files/casacore-2.3.0-loose-some-tests-tFFTServer-tests.patch
new file mode 100644
index 000000000000..bccffcd4b522
--- /dev/null
+++ b/sci-astronomy/casacore/files/casacore-2.3.0-loose-some-tests-tFFTServer-tests.patch
@@ -0,0 +1,36 @@
+From: Ole Streicher <olebole@debian.org>
+Date: Thu, 24 Nov 2016 14:31:06 +0100
+Subject: Loose some tests tFFTServer tests
+
+This shall help to compile for mips64el and hppa.
+---
+ scimath/Mathematics/test/tFFTServer.cc | 2 +-
+ scimath/Mathematics/test/tFFTServer2.cc | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/scimath/Mathematics/test/tFFTServer.cc b/scimath/Mathematics/test/tFFTServer.cc
+index c211f36..711e5a7 100644
+--- a/scimath/Mathematics/test/tFFTServer.cc
++++ b/scimath/Mathematics/test/tFFTServer.cc
+@@ -1347,7 +1347,7 @@ public:
+ }
+ AlwaysTrue(result.shape().isEqual(expectedResult.shape()),
+ AipsError);
+- AlwaysTrue(allNearAbs(result, expectedResult, epsilon),
++ AlwaysTrue(allNearAbs(result, expectedResult, 2*epsilon),
+ AipsError);
+
+ int out_size = expectedResult.nelements();
+diff --git a/scimath/Mathematics/test/tFFTServer2.cc b/scimath/Mathematics/test/tFFTServer2.cc
+index a663d50..880bce3 100644
+--- a/scimath/Mathematics/test/tFFTServer2.cc
++++ b/scimath/Mathematics/test/tFFTServer2.cc
+@@ -1096,7 +1096,7 @@ int main() {
+ expectedResult(0) = Complex(5,0);
+ server.fft(result, input, True);
+ AlwaysAssert(near(result(0), Complex(5,0), FLT_EPSILON), AipsError);
+- AlwaysAssert(!near(result(4).imag(), 0.0f, FLT_EPSILON), AipsError);
++ AlwaysAssert(!near(result(4).imag(), 0.0f, 2*FLT_EPSILON), AipsError);
+ server.fft(reverseTransform, result);
+ AlwaysAssert(allNearAbs(input, reverseTransform, FLT_EPSILON),
+ AipsError);