From 3d5c61cdcd0431f381b412a3bf8963f9bde88a8f Mon Sep 17 00:00:00 2001 From: Nozomi Kodama Date: Tue, 2 Oct 2012 14:13:11 +0800 Subject: [PATCH] d3dx9_36/tests: Relax an equality between floats. --- 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 761b832093a..8ab03917927 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]); } }