[libc++] Split re.alg tests into locale-dependent and independent tests
authorAlex Richardson <Alexander.Richardson@cl.cam.ac.uk>
Wed, 20 Jan 2021 15:43:57 +0000 (15:43 +0000)
committerAlex Richardson <Alexander.Richardson@cl.cam.ac.uk>
Wed, 20 Jan 2021 15:48:50 +0000 (15:48 +0000)
commit537d90db827d1df0fef400653eefd857834ca0ba
tree0deb874a1e980b18c30a13784b6b09fae937bcaf
parent8000c778532bfe1cc74191e41e19272e54477ed0
[libc++] Split re.alg tests into locale-dependent and independent tests

Currently all these tests are XFAILED on Linux even though the problem
only seems to be with the few checks that look at collation. To retain
test coverage this splits the locale-dependent tests into a separate
.pass.cpp that is XFAILed as before.
This commit also XFAILs the locale-dependent tests on FreeBSD since the
[=M=] and [.ch.] behaviour for cs_CZ also doesn't seem to match the
behaviour that is expected by these tests.

Reviewed By: #libc, ldionne

Differential Revision: https://reviews.llvm.org/D94969
17 files changed:
libcxx/test/std/re/re.alg/re.alg.match/awk.locale.pass.cpp [new file with mode: 0644]
libcxx/test/std/re/re.alg/re.alg.match/awk.pass.cpp
libcxx/test/std/re/re.alg/re.alg.match/basic.locale.pass.cpp [new file with mode: 0644]
libcxx/test/std/re/re.alg/re.alg.match/basic.pass.cpp
libcxx/test/std/re/re.alg/re.alg.match/ecma.locale.pass.cpp [new file with mode: 0644]
libcxx/test/std/re/re.alg/re.alg.match/ecma.pass.cpp
libcxx/test/std/re/re.alg/re.alg.match/extended.locale.pass.cpp [new file with mode: 0644]
libcxx/test/std/re/re.alg/re.alg.match/extended.pass.cpp
libcxx/test/std/re/re.alg/re.alg.search/awk.locale.pass.cpp [new file with mode: 0644]
libcxx/test/std/re/re.alg/re.alg.search/awk.pass.cpp
libcxx/test/std/re/re.alg/re.alg.search/basic.locale.pass.cpp [new file with mode: 0644]
libcxx/test/std/re/re.alg/re.alg.search/basic.pass.cpp
libcxx/test/std/re/re.alg/re.alg.search/ecma.locale.pass.cpp [new file with mode: 0644]
libcxx/test/std/re/re.alg/re.alg.search/ecma.pass.cpp
libcxx/test/std/re/re.alg/re.alg.search/extended.locale.pass.cpp [new file with mode: 0644]
libcxx/test/std/re/re.alg/re.alg.search/extended.pass.cpp
libcxx/utils/libcxx/test/features.py