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
This commit is contained in:
Ed Schouten 2015-03-16 09:44:37 +00:00
parent 94d09faa93
commit 438a5c9fdf

View File

@ -45,7 +45,8 @@ int main()
{
test<char> 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);
}
}