This is the mail archive of the mailing list for the GCC project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH][libstdc++][Testsuite] isctype test fails for newlib.


On 02/02/2015 04:49 PM, Matthew Wahab wrote:

With target arm-none-eabi, the libstdc++ tests 28_regex/traits/char/ and 28_regex/traits/wchar/ fail at
VERIFY(!t.isctype('\n', t.lookup_classname(range(blank))));
This is because libstdc++ puts '\n' in the 'space' character class, rather than 'blank' when building on newlib. This problem was known when suport for the blank character class was added to libstdc++ (see so this failure is not unexpected.

Changes to newlib that would have allowed the problem to be fixed were made ( but then reverted (

This patch modifies the test to add a special case for the behaviour with newlib.

Tested by running check-target-libstdc++-v3 - libstdc++-dg/conformance.exp, with the modified tests, for arm-none-eabi and aarch64-none-linux-gnu. No new failures and the modified tests now pass on arm-none-eabi.

Ok for trunk?
I guess the patch is Ok for trunk, but please also add in the comment a link to this message of yours, that is


PS: please remember to always CC libstdc++-v3 patches to

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]