This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
PATCH: Hide XFAILs related to unknown named locale
- From: Loren James Rittle <rittle at latour dot rsch dot comm dot mot dot com>
- To: libstdc++ at gcc dot gnu dot org
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Fri, 14 Mar 2003 15:44:21 -0600 (CST)
- Subject: PATCH: Hide XFAILs related to unknown named locale
- Reply-to: rittle at labs dot mot dot com
As committed to address another class of XFAILs. FYI, these are not
marked in the traditional manner since they are run-time XFAILs not
compile-time XFAILs.
* testsuite/testsuite_hooks.h: Suppress runtime exception thrown by
missing named locale.
Index: libstdc++-v3/testsuite/testsuite_hooks.cc
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/testsuite/testsuite_hooks.cc,v
retrieving revision 1.9
diff -c -r1.9 testsuite_hooks.cc
*** libstdc++-v3/testsuite/testsuite_hooks.cc 11 Mar 2003 05:32:56 -0000 1.9
--- libstdc++-v3/testsuite/testsuite_hooks.cc 14 Mar 2003 21:40:17 -0000
***************
*** 157,162 ****
--- 157,164 ----
{
if (std::strstr (ex.what(), "unhandled name in generic implementation"))
return;
+ else if (std::strstr (ex.what(), "unknown name"))
+ return;
else
throw;
}
***************
*** 192,197 ****
--- 194,201 ----
{
if (std::strstr (ex.what(), "unhandled name in generic implementation"))
return;
+ else if (std::strstr (ex.what(), "unknown name"))
+ return;
else
throw;
}
***************
*** 218,223 ****
--- 222,229 ----
catch (std::runtime_error& ex)
{
if (std::strstr (ex.what(), "unhandled name in generic implementation"))
+ return;
+ else if (std::strstr (ex.what(), "unknown name"))
return;
else
throw;