Browse Source

Math: expect failure in SVD test only on non-optimized Emscripten builds.

Emscripten 1.37.1 with -O3 doesn't fail there.
pull/190/head
Vladimír Vondruš 9 years ago
parent
commit
c8cc1dc88e
  1. 6
      src/Magnum/Math/Algorithms/Test/SvdTest.cpp

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

@ -67,8 +67,10 @@ template<class T> void SvdTest::test() {
Matrix5x8<T> w2 = Matrix5x8<T>::fromDiagonal(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) && u2*w2*v.transposed() != a,
"Some strange problems with Double on recent Emscripten versions "
"(1.36.5 worked fine, 1.37.1 works fine on larger optimization "
"levels, not on -O1).");
#endif
CORRADE_COMPARE(u2*w2*v.transposed(), a);
}

Loading…
Cancel
Save