From: Ed Schouten Date: Mon, 16 Mar 2015 09:44:37 +0000 (+0000) Subject: Don't hardcode the locale name string. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bd250daee053252042ed5a33c8b13e3b24a61f52;p=platform%2Fupstream%2Fllvm.git 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. llvm-svn: 232365 --- diff --git a/libcxx/test/std/input.output/stream.buffers/streambuf/streambuf.members/streambuf.locales/locales.pass.cpp b/libcxx/test/std/input.output/stream.buffers/streambuf/streambuf.members/streambuf.locales/locales.pass.cpp index deb2dc7..95dd2db 100644 --- a/libcxx/test/std/input.output/stream.buffers/streambuf/streambuf.members/streambuf.locales/locales.pass.cpp +++ b/libcxx/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); } }