Fix printf tests for recent MinGW versions

The default mantissa length was changed from 3 to 2 in MinGW 5.0.4.
Fix the test for printing pointer addresses in 64bit MinGW.
This commit is contained in:
Maarten Bent
2018-08-02 20:49:23 +02:00
parent f3ae302b4d
commit bcfc9a8a26
3 changed files with 34 additions and 42 deletions

View File

@@ -849,9 +849,7 @@ void StringTestCase::FromDouble()
} testData[] =
{
{ 1.23, -1, "1.23" },
// All MSVC versions until MSVC 14 used 3 digits for the exponent
// unnecessarily, account for this non-standard behaviour.
#if defined(wxUSING_VC_CRT_IO) && !wxCHECK_VISUALC_VERSION(14)
#if defined(wxDEFAULT_MANTISSA_SIZE_3)
{ -3e-10, -1, "-3e-010" },
#else
{ -3e-10, -1, "-3e-10" },