stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From se...@apache.org
Subject svn commit: r572853 - in /incubator/stdcxx/trunk/tests/localization: 22.locale.ctype.mt.cpp 22.locale.numpunct.mt.cpp
Date Wed, 05 Sep 2007 01:48:59 GMT
Author: sebor
Date: Tue Sep  4 18:48:58 2007
New Revision: 572853

URL: http://svn.apache.org/viewvc?rev=572853&view=rev
Log:
2007-09-4  Travis Vitek  <vitek@roguewave.com>

	STDCXX-511
	* 22.locale.numpunct.mt.cpp (run_test): Fatal assert if unable to
	create at least one locale.
	22.locale.ctype.mt.cpp (run_test): Ditto.

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

Modified: incubator/stdcxx/trunk/tests/localization/22.locale.ctype.mt.cpp
URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/tests/localization/22.locale.ctype.mt.cpp?rev=572853&r1=572852&r2=572853&view=diff
==============================================================================
--- incubator/stdcxx/trunk/tests/localization/22.locale.ctype.mt.cpp (original)
+++ incubator/stdcxx/trunk/tests/localization/22.locale.ctype.mt.cpp Tue Sep  4 18:48:58 2007
@@ -232,6 +232,10 @@
             break;
     }
 
+    // avoid divide by zero in thread if there are no locales to test
+    rw_fatal (nlocales != 0, 0, __LINE__,
+              "failed to create one or more usable locales!");
+
     rw_info (0, 0, 0,
              "testing std::ctype<charT> with %d thread%{?}s%{;}, "
              "%zu iteration%{?}s%{;} each, in %zu locales { %{ .*A@} }",

Modified: incubator/stdcxx/trunk/tests/localization/22.locale.numpunct.mt.cpp
URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/tests/localization/22.locale.numpunct.mt.cpp?rev=572853&r1=572852&r2=572853&view=diff
==============================================================================
--- incubator/stdcxx/trunk/tests/localization/22.locale.numpunct.mt.cpp (original)
+++ incubator/stdcxx/trunk/tests/localization/22.locale.numpunct.mt.cpp Tue Sep  4 18:48:58
2007
@@ -215,6 +215,10 @@
             break;
     }
 
+    // avoid divide by zero in thread if there are no locales to test
+    rw_fatal (nlocales != 0, 0, __LINE__,
+              "failed to create one or more usable locales!");
+
     // reset the global locale
     std::setlocale (LC_ALL, "C");
 



Mime
View raw message