Matteo Bruni : d3dx9/tests: Increase tolerance in a quaternion test.

Alexandre Julliard julliard at winehq.org
Mon Mar 28 15:53:41 CDT 2022


Module: wine
Branch: master
Commit: 9cb65cb025e0578c1883abb96f2cd8f9ef6813ef
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=9cb65cb025e0578c1883abb96f2cd8f9ef6813ef

Author: Matteo Bruni <mbruni at codeweavers.com>
Date:   Mon Mar 28 14:12:19 2022 +0200

d3dx9/tests: Increase tolerance in a quaternion test.

It currently fails for me on 32-bit Linux.

Signed-off-by: Matteo Bruni <mbruni at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/d3dx9_36/tests/math.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/d3dx9_36/tests/math.c b/dlls/d3dx9_36/tests/math.c
index 501895665f7..564e61040e7 100644
--- a/dlls/d3dx9_36/tests/math.c
+++ b/dlls/d3dx9_36/tests/math.c
@@ -1848,7 +1848,7 @@ static void D3DXQuaternionTest(void)
     u.x = 91.0f; u.y = - 82.0f; u.z = 7.3f; u.w = -6.4f;
     D3DXQuaternionSquadSetup(&gotquat, &Nq, &Nq1, &r, &s, &t, &u);
     expectedquat.x = 7.121285f; expectedquat.y = 2.159964f; expectedquat.z = -3.855094f; expectedquat.w = 5.362844f;
-    expect_quaternion(&expectedquat, &gotquat, 2);
+    expect_quaternion(&expectedquat, &gotquat, 16);
     expectedquat.x = -1113.492920f; expectedquat.y = 82.679260f; expectedquat.z = -6.696645f; expectedquat.w = -4.090050f;
     expect_quaternion(&expectedquat, &Nq, 4);
     expectedquat.x = -1111.0f; expectedquat.y = 111.0f; expectedquat.z = -11.0f; expectedquat.w = 1.0f;




More information about the wine-cvs mailing list