't-locale' test build failure using MinGW-W64

sav_ix at ukr.net sav_ix at ukr.net
Sat Jan 9 10:57:06 UTC 2016


    Hi, 


Thought that all 't-locale' test questions were closed, while found few inconsistencies for builds using MinGW-W64 <x86,x64>+<shared,static> configurations: 


--- Исходное сообщение --- 
От кого: "Marco Bodrato" <bodrato at mail.dm.unipi.it> 
Дата: 2 января 2016, 20:17:44 

[snip] 
Marc is right, with the patch the test in tests/misc/t-locale.c will end
up printing the "Test skipped" message for MinGW.

Moreover the patch to tests/cxx allows compiling the tests for the C++ layer.

> But if all MinGW* compilers has its own 'localeconv' implementation and if
> my patch concerns only MinGW*, for what cases would work "printf ("Test
> skipped, replacing localeconv..."?

The test print that message for any system not allowing the replacement.
Now it prints the same message for MinGW too. It makes sense.
 
 1. It prints "Test skipped..." only for 'GMP/tests/misc/t-locale.c' test but not for 'GMP/tests/misc/t-locale.cc': 
- 'GMP/tests/misc/t-locale.log': 
------------------------------------------------------------------------------------------ 
Test skipped, replacing localeconv/nl_langinfo doesn't work 
PASS t-locale.exe (exit status: 0) 
------------------------------------------------------------------------------------------ 

- 'GMP/tests/cxx/t-locale.log': 
------------------------------------------------------------------------------------------ 
PASS t-locale.exe (exit status: 0) 
------------------------------------------------------------------------------------------ 

How could it be, that C++ localeconv() is usable for GMP and C localeconv() don't for same build configuration? 


2. When 't-locale' test prints "Test skipped..." test-suite still consider that test was passed successfully (not skipped). 
- 'GMP/tests/misc/t-locale.log': 
------------------------------------------------------------------------------------------ 
Test skipped, replacing localeconv/nl_langinfo doesn't work 
PASS t-locale.exe (exit status: 0) 
------------------------------------------------------------------------------------------ 

- 'GMP/tests/misc/t-locale.trs': 
------------------------------------------------------------------------------------------ 
:test-result: PASS 
:global-test-result: PASS 
:recheck: no 
:copy-in-global-log: no 
------------------------------------------------------------------------------------------ 

- 'make check': 
------------------------------------------------------------------------------------------ 
PASS: t-printf.exe 
PASS: t-scanf.exe 
PASS: t-locale.exe 
============================================================================ 
Testsuite summary for GNU MP 6.1.0 
============================================================================ 
# TOTAL: 3 
# PASS:  3 
# SKIP:  0 
# XFAIL: 0 
# FAIL:  0 
# XPASS: 0 
# ERROR: 0 
============================================================================ 
------------------------------------------------------------------------------------------ 

Whether it is the default behavior or a flaw in test-suite? 



Regards, 

Alexander 



More information about the gmp-bugs mailing list