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:
parent
94d09faa93
commit
438a5c9fdf
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user