[libc++] Enables put_long_double test for glibc.
authorMark de Wever <koraq@xs4all.nl>
Tue, 8 Feb 2022 17:32:08 +0000 (18:32 +0100)
committerMark de Wever <koraq@xs4all.nl>
Wed, 9 Feb 2022 16:13:13 +0000 (17:13 +0100)
commitece0f70664af27f38f3538587903096a5cb1e3d9
tree9548116f4c5d108874dec15ff79d4320deda9afd
parent11e4001ba2b40ffa7988e54e965b51b584bb827b
[libc++] Enables put_long_double test for glibc.

Glibc adds a +-sign for NaN-values when showpos fmtflags are set.

[tab:ios.fmtflags]
showpos generates a + sign in non-negative generated numeric output

Since NaNs aren't negative this behaviour seems correct. Enable the test
for glibc and add ifdefs to make sure the existing tests still pass.

This was noticed while working on D118971.

Reviewed By: #libc, ldionne

Differential Revision: https://reviews.llvm.org/D119260
libcxx/test/std/localization/locale.categories/category.numeric/locale.nm.put/facet.num.put.members/put_long_double.pass.cpp