From 2b1cf12bf36e536cd29994951b46f180e81e1179 Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Mon, 18 Feb 2019 22:50:16 +0100 Subject: Fix a few issues with i386 builds Relax tolerances in a few unit test, and in laea code. Seen with gcc 5.3 and also 7.1 Related to the use of the 387 floating-point math, since they disappear with gcc 7.1 if using non-default -mfpmath=sse -msse --- test/unit/test_io.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/unit/test_io.cpp') diff --git a/test/unit/test_io.cpp b/test/unit/test_io.cpp index 2cc05aad..3d015e0c 100644 --- a/test/unit/test_io.cpp +++ b/test/unit/test_io.cpp @@ -6773,7 +6773,7 @@ TEST(io, projparse_longlat_a_es) { ASSERT_TRUE(crs != nullptr); EXPECT_EQ(crs->ellipsoid()->semiMajorAxis().getSIValue(), 2); auto rf = crs->ellipsoid()->computedInverseFlattening(); - EXPECT_EQ(rf, 3.4142135623730958) << rf; + EXPECT_NEAR(rf, 3.4142135623730958, 1e-14) << rf; } // --------------------------------------------------------------------------- -- cgit v1.2.3