From 915d0f06008139d4ba99aac0de7cd20531a52d53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Thu, 7 Jun 2018 13:18:17 +0200 Subject: [PATCH] Math/Geometry: this test passes only on non-optimized Emscripten builds. And there's no way to detect that, so doing this ugly thing. --- src/Magnum/Math/Geometry/Test/IntersectionTest.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Magnum/Math/Geometry/Test/IntersectionTest.cpp b/src/Magnum/Math/Geometry/Test/IntersectionTest.cpp index 5ffac6ea9..95071deb1 100644 --- a/src/Magnum/Math/Geometry/Test/IntersectionTest.cpp +++ b/src/Magnum/Math/Geometry/Test/IntersectionTest.cpp @@ -308,6 +308,8 @@ void IntersectionTest::sphereCone() { { #ifndef CORRADE_TARGET_EMSCRIPTEN CORRADE_EXPECT_FAIL("Cone touching from the outside fails, possibly because of precision."); + #else + CORRADE_EXPECT_FAIL_IF(!Intersection::sphereCone(centerDouble + 4.0*surfaceDouble + sNormalDouble*0.5, 0.5, centerDouble, normalDouble, angleDouble), "Cone touching from the outside fails on optimized Emscripten builds, possibly because of precision."); #endif CORRADE_VERIFY(Intersection::sphereCone(centerDouble + 4.0*surfaceDouble + sNormalDouble*0.5, 0.5, centerDouble, normalDouble, angleDouble)); }