From 1939528dab19ad769a4a5c6a4cbb02dfa479f6cf Mon Sep 17 00:00:00 2001 From: Piotr Caban Date: Fri, 19 Nov 2021 13:54:26 +0100 Subject: [PATCH] ucrtbase: Fix fma test failures. Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=51895 Signed-off-by: Piotr Caban Signed-off-by: Alexandre Julliard --- dlls/ucrtbase/tests/misc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/ucrtbase/tests/misc.c b/dlls/ucrtbase/tests/misc.c index 60f569c69ff..5f2a0992f2e 100644 --- a/dlls/ucrtbase/tests/misc.c +++ b/dlls/ucrtbase/tests/misc.c @@ -799,7 +799,7 @@ static void test_math_errors(void) errno = -1; exception.type = -1; p_func3d(tests3d[i].a, tests3d[i].b, tests3d[i].c); - ok(errno == tests3d[i].error, + ok(errno == tests3d[i].error || errno == -1, /* native is not setting errno if FMA3 is supported */ "%s(%f, %f, %f) got errno %d\n", tests3d[i].func, tests3d[i].a, tests3d[i].b, tests3d[i].c, errno); ok(exception.type == tests3d[i].exception, "%s(%f, %f, %f) got exception type %d\n", tests3d[i].func, tests3d[i].a, tests3d[i].b, tests3d[i].c, exception.type);