stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From far...@apache.org
Subject svn commit: r581946 - /incubator/stdcxx/trunk/tests/localization/22.locale.cons.mt.cpp
Date Thu, 04 Oct 2007 15:19:40 GMT
Author: faridz
Date: Thu Oct  4 08:19:39 2007
New Revision: 581946

URL: http://svn.apache.org/viewvc?rev=581946&view=rev
Log:
2007-10-04 Farid Zaripov <farid_zaripov@epam.com>

	STDCXX-575
	* 22.locale.cons.mt.cpp [_MSC_VER] (test_ctors): If
	cat == std::locale::messages, compare combined locale
	with first because of the MSVC doesn't support
	LC_MESSAGES constant.

Modified:
    incubator/stdcxx/trunk/tests/localization/22.locale.cons.mt.cpp

Modified: incubator/stdcxx/trunk/tests/localization/22.locale.cons.mt.cpp
URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/tests/localization/22.locale.cons.mt.cpp?rev=581946&r1=581945&r2=581946&view=diff
==============================================================================
--- incubator/stdcxx/trunk/tests/localization/22.locale.cons.mt.cpp (original)
+++ incubator/stdcxx/trunk/tests/localization/22.locale.cons.mt.cpp Thu Oct  4 08:19:39 2007
@@ -119,8 +119,13 @@
             const std::locale combined (first, next_name, cat);
 
             // verify that the locales were created correctly
-            if (std::locale::none == cat || first == next)
+            if (   std::locale::none == cat
+#ifdef _MSC_VER
+                || std::locale::messages == cat
+#endif
+                || first == next) {
                 RW_ASSERT (combined == first);
+            }
             else if (std::locale::all == cat)
                 RW_ASSERT (combined == next);
             else
@@ -129,8 +134,13 @@
             // repeat the step above but with a locale object
             const std::locale combined_2 (first, next, cat);
 
-            if (std::locale::none == cat || first == next)
+            if (   std::locale::none == cat
+#ifdef _MSC_VER
+                || std::locale::messages == cat
+#endif
+                || first == next) {
                 RW_ASSERT (combined_2 == first);
+            }
             else if (std::locale::all == cat)
                 RW_ASSERT (combined_2 == next);
             else



Mime
View raw message