Browse Source

Math/Geometry: this test passes only on non-optimized Emscripten builds.

And there's no way to detect that, so doing this ugly thing.
pull/226/head
Vladimír Vondruš 8 years ago
parent
commit
915d0f0600
  1. 2
      src/Magnum/Math/Geometry/Test/IntersectionTest.cpp

2
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));
}

Loading…
Cancel
Save