Module: wine Branch: master Commit: 3d5c61cdcd0431f381b412a3bf8963f9bde88a8f URL: http://source.winehq.org/git/wine.git/?a=commit;h=3d5c61cdcd0431f381b412a3bf...
Author: Nozomi Kodama nozomi.kodama@yahoo.com Date: Tue Oct 2 14:13:11 2012 +0800
d3dx9_36/tests: Relax an equality between floats.
---
dlls/d3dx9_36/tests/math.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/d3dx9_36/tests/math.c b/dlls/d3dx9_36/tests/math.c index 761b832..8ab0391 100644 --- a/dlls/d3dx9_36/tests/math.c +++ b/dlls/d3dx9_36/tests/math.c @@ -2418,7 +2418,7 @@ static void test_D3DXSHAdd(void) ok(relative_error(in1[i] + in2[i], out[i]) < admitted_error, "%u-%u: D3DXSHAdd() failed, got %f, expected %f\n", k, i, out[i], in1[i] + in2[i]); } - ok(out[count] == 0.0f, "%u-%u: D3DXSHAdd() failed, got %f, expected 0.0\n", k, k * k, out[count]); + ok(relative_error(out[count], 0.0f) < admitted_error, "%u-%u: D3DXSHAdd() failed, got %f, expected 0.0\n", k, k * k, out[count]); } }