From c8cc1dc88ebf75e5b1fda613d71f4ea64b8d9c40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Fri, 6 Jan 2017 18:28:35 +0100 Subject: [PATCH] Math: expect failure in SVD test only on non-optimized Emscripten builds. Emscripten 1.37.1 with -O3 doesn't fail there. --- src/Magnum/Math/Algorithms/Test/SvdTest.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Magnum/Math/Algorithms/Test/SvdTest.cpp b/src/Magnum/Math/Algorithms/Test/SvdTest.cpp index 7eec4e7c0..bbcf9318c 100644 --- a/src/Magnum/Math/Algorithms/Test/SvdTest.cpp +++ b/src/Magnum/Math/Algorithms/Test/SvdTest.cpp @@ -67,8 +67,10 @@ template void SvdTest::test() { Matrix5x8 w2 = Matrix5x8::fromDiagonal(w); { #ifdef CORRADE_TARGET_EMSCRIPTEN - CORRADE_EXPECT_FAIL_IF((std::is_same::value), - "Some strange problems with Double on recent Emscripten versions (1.36.5 worked fine)."); + CORRADE_EXPECT_FAIL_IF((std::is_same::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); }