From 7150b07041bf05d953e82aa8d1738c83e9ba80f6 Mon Sep 17 00:00:00 2001 From: Cristian Adam Date: Tue, 17 Mar 2020 11:15:23 +0100 Subject: [PATCH] QLocale: Fix test on MinGW 8.1.0 32 bit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The call of _control87 would crash because of the previous test. Change-Id: I254efe9c2e9892a473a02663e5ff7016791d5d6d Reviewed-by: Tony Sarajärvi --- tests/auto/corelib/text/qlocale/tst_qlocale.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/auto/corelib/text/qlocale/tst_qlocale.cpp b/tests/auto/corelib/text/qlocale/tst_qlocale.cpp index ec85a6c5c62..5eb6a6a9a48 100644 --- a/tests/auto/corelib/text/qlocale/tst_qlocale.cpp +++ b/tests/auto/corelib/text/qlocale/tst_qlocale.cpp @@ -1395,6 +1395,7 @@ void tst_QLocale::fpExceptions() // check that double-to-string conversion doesn't throw floating point exceptions when they are // enabled #ifdef Q_OS_WIN + _clear87(); unsigned int oldbits = _control87(0, 0); _control87( 0 | _EM_INEXACT, _MCW_EM ); #endif