aboutsummaryrefslogtreecommitdiff
path: root/libcxx/test
diff options
context:
space:
mode:
authorMichal Gorny <mgorny@gentoo.org>2018-12-17 19:13:41 +0000
committerMichal Gorny <mgorny@gentoo.org>2018-12-17 19:13:41 +0000
commit916bf993a2ec4b31b7f8dbfdce7c5153c7acfcb1 (patch)
treec8fe107a895b956c9b752dd6adab6d1e79f8c850 /libcxx/test
parent1811217e4d6b898928ce1c9c31c6ff00ffbd3cc3 (diff)
[test] [re.traits] Remove asserts failing due to invalid UTF-8
Remove the two test cases for \xDA and \xFA with UTF-8 locale, as both characters alone are invalid in UTF-8 (short sequences). Upon removing them, the test passes on Linux again (and also on NetBSD, after adding appropriate locale configuration). Differential Revision: https://reviews.llvm.org/D55746 llvm-svn: 349378
Diffstat (limited to 'libcxx/test')
-rw-r--r--libcxx/test/std/re/re.traits/translate_nocase.pass.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/libcxx/test/std/re/re.traits/translate_nocase.pass.cpp b/libcxx/test/std/re/re.traits/translate_nocase.pass.cpp
index 33d365a9ede3..ae757afee6ff 100644
--- a/libcxx/test/std/re/re.traits/translate_nocase.pass.cpp
+++ b/libcxx/test/std/re/re.traits/translate_nocase.pass.cpp
@@ -19,9 +19,6 @@
// XFAIL: with_system_cxx_lib=macosx10.7
// XFAIL: with_system_cxx_lib=macosx10.8
-// TODO: investigation needed
-// XFAIL: linux-gnu
-
#include <regex>
#include <cassert>
@@ -47,8 +44,6 @@ int main()
assert(t.translate_nocase('.') == '.');
assert(t.translate_nocase('a') == 'a');
assert(t.translate_nocase('1') == '1');
- assert(t.translate_nocase('\xDA') == '\xFA');
- assert(t.translate_nocase('\xFA') == '\xFA');
}
{
std::regex_traits<wchar_t> t;