From 438a5c9fdf23d3f7924ef825e65195d107db5c36 Mon Sep 17 00:00:00 2001 From: Ed Schouten Date: Mon, 16 Mar 2015 09:44:37 +0000 Subject: [PATCH] Don't hardcode the locale name string. The rest of the test uses the #defines for the locale names properly. In this single spot we do hardcode the string. This causes this test to fail on CloudABI, where this locale is called en_US.UTF-8@UTC. git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@232365 91177308-0d34-0410-b5e6-96231b3b80d8 --- .../streambuf.members/streambuf.locales/locales.pass.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/std/input.output/stream.buffers/streambuf/streambuf.members/streambuf.locales/locales.pass.cpp b/test/std/input.output/stream.buffers/streambuf/streambuf.members/streambuf.locales/locales.pass.cpp index deb2dc7c1..95dd2db75 100644 --- a/test/std/input.output/stream.buffers/streambuf/streambuf.members/streambuf.locales/locales.pass.cpp +++ b/test/std/input.output/stream.buffers/streambuf/streambuf.members/streambuf.locales/locales.pass.cpp @@ -45,7 +45,8 @@ int main() { test t; assert(t.getloc().name() == LOCALE_en_US_UTF_8); - assert(t.pubimbue(std::locale(LOCALE_fr_FR_UTF_8)).name() == "en_US.UTF-8"); + assert(t.pubimbue(std::locale(LOCALE_fr_FR_UTF_8)).name() == + LOCALE_en_US_UTF_8); assert(t.getloc().name() == LOCALE_fr_FR_UTF_8); } }