d3dx9/tests: Fix comparison that expects NAN, since NAN != NAN.

Alexandre Julliard julliard at winehq.org
Mon Jun 27 17:40:09 CDT 2011


Dylan Smith <dylan.ah.smith at gmail.com> writes:

> @@ -4834,7 +4834,7 @@ static void test_create_skin_info(void)
>              for (i = 0; i < num_influences; i++) {
>                  ok(exp_vertices[i] == vertices[i],
>                     "influence[%d]: expected vertex %u, got %u\n", i, exp_vertices[i], vertices[i]);
> -                ok(exp_weights[i] == weights[i],
> +                ok((isnan(exp_weights[i]) && isnan(weights[i])) || exp_weights[i] == weights[i],

I put this in for now to fix the tests, but isnan() isn't really
portable, we should try to find a better way.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list