[libcxx] [test] Fix one failing part of dsl.sh.py on Windows.
authorMartin Storsjö <martin@martin.st>
Mon, 10 Jan 2022 23:08:19 +0000 (23:08 +0000)
committerMartin Storsjö <martin@martin.st>
Sun, 27 Feb 2022 20:06:18 +0000 (22:06 +0200)
commitacf20001a01119ce02d5f2b0282e5a7c966ca12c
tree1fd3b0df1385412f7d3a02a5b04115508268653e
parentf1d0d6f70c63a465c102742c7b910cc201a9502e
[libcxx] [test] Fix one failing part of dsl.sh.py on Windows.

Windows UCRT has got a bug in older versions (present in CI), where
it successfully does set a locale named
`for_sure_this_is_not_an_existing_locale`. By adjusting the tested
locale name to `forsurethisisnotanexistinglocale`, that test works
as expected, failing to set the locale.

The bug is reported upstream at
https://developercommunity.visualstudio.com/t/setlocale-succeeds-for-bogus-locale-names-in-older/1652241,
but as it already is working correctly in newer versions, no action
was prompted there.

We could of course add a bug detection in features.py like other
existing `broken-*` features, but that would seem kinda
pointless as it would be doing exactly what this test does.
Instead just adjust the tested dummy locale name.

This bit was approved to be committed on its own, in
https://reviews.llvm.org/D120546 (which is left open to follow up on
review of the rest of that patch).
libcxx/test/libcxx/selftest/dsl/dsl.sh.py