Browse Source

Math: "fixed" SvdTest on recent Emscripten versions.

The algorithm is broken on doubles in different ways in different
versions and optimization levels. Hopefully things will get more stable
later.
pull/203/merge
Vladimír Vondruš 9 years ago
parent
commit
df47c73290
  1. 6
      src/Magnum/Math/Algorithms/Test/SvdTest.cpp

6
src/Magnum/Math/Algorithms/Test/SvdTest.cpp

@ -82,8 +82,10 @@ template<class T> void SvdTest::test() {
/* Test W */
{
#ifdef CORRADE_TARGET_EMSCRIPTEN
CORRADE_EXPECT_FAIL_IF((std::is_same<T, Double>::value),
"Some strange problems with Double on recent Emscripten versions (1.36.5 worked fine).");
CORRADE_EXPECT_FAIL_IF((std::is_same<T, Double>::value && w != expected),
"Some strange problems with Double on recent Emscripten versions "
"(1.36.5 worked fine, 1.37.1 worked fine on larger optimization "
"levels, not on -O1, 1.37.5 works fine again).");
#endif
CORRADE_COMPARE(w, expected);
}

Loading…
Cancel
Save