]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Make dg-require-namedlocale work for more targets [PR65909]
authorJonathan Wakely <jwakely@redhat.com>
Thu, 8 May 2025 08:57:28 +0000 (09:57 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Mon, 12 May 2025 08:42:04 +0000 (09:42 +0100)
commit3e2b83faeb6b14254641933525e63171e89d973f
treee8b24e9acafbcfdd85c29983b305bdf6ba29ea0d
parente64e894006eb4d82e0a80a386cf1d1714498e161
libstdc++: Make dg-require-namedlocale work for more targets [PR65909]

As noted in the PR, some embedded targets do not support command-line
arguments, which means that the dg-require-namedlocale check always
fails. Use Sandra's suggestion of hardcoding the argument into the
executable instead of passing it as a command-line argument.

Realistically, those embedded targets probably don't support the named
locales anyway, but at least now the tests will be UNSUPPORTED for the
right reason.

libstdc++-v3/ChangeLog:

PR libstdc++/65909
* testsuite/lib/libstdc++.exp (check_v3_target_namedlocale):
Hardcode the locale name instead of passing it to the
executable. Do not hardcode buffer size for string.

Reviewed-by: Tomasz KamiƄski <tkaminsk@redhat.com>
libstdc++-v3/testsuite/lib/libstdc++.exp