This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[v3] Minor tweak to a locale/cons testcase
- From: Paolo Carlini <pcarlini at suse dot de>
- To: gcc-patches at gcc dot gnu dot org
- Date: Fri, 14 Nov 2003 12:54:34 +0100
- Subject: [v3] Minor tweak to a locale/cons testcase
Hi,
tested x86-linux.
Paolo.
/////////
2003-11-14 Paolo Carlini <pcarlini@suse.de>
* testsuite/22_locale/locale/cons/12352.cc: Use
__gnu_test::try_named_locale.
diff -urN libstdc++-v3-orig/testsuite/22_locale/locale/cons/12352.cc libstdc++-v3/testsuite/22_locale/locale/cons/12352.cc
--- libstdc++-v3-orig/testsuite/22_locale/locale/cons/12352.cc 2003-09-30 17:19:33.000000000 +0200
+++ libstdc++-v3/testsuite/22_locale/locale/cons/12352.cc 2003-11-14 11:44:30.000000000 +0100
@@ -22,6 +22,7 @@
#include <locale>
#include <cstdlib>
#include <cstring>
+#include <testsuite_hooks.h>
int times_to_fail = 0;
@@ -100,7 +101,7 @@
times_to_fail = i;
try
{
- std::locale loc1("");
+ std::locale loc1 = __gnu_test::try_named_locale("");
std::locale loc2(loc1, std::locale::classic(),
std::locale::numeric);
}