Don't hardcode the locale name string.
authorEd Schouten <ed@nuxi.nl>
Mon, 16 Mar 2015 09:44:37 +0000 (09:44 +0000)
committerEd Schouten <ed@nuxi.nl>
Mon, 16 Mar 2015 09:44:37 +0000 (09:44 +0000)
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

libcxx/test/std/input.output/stream.buffers/streambuf/streambuf.members/streambuf.locales/locales.pass.cpp

index deb2dc7..95dd2db 100644 (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);
     }
 }