summaryrefslogtreecommitdiff
path: root/libstdc++-v3/testsuite
diff options
context:
space:
mode:
authorbkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4>2003-04-28 23:05:57 +0000
committerbkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4>2003-04-28 23:05:57 +0000
commit78c40ba0dfd54cf8afc32abbde104ff72ae7debd (patch)
tree7f56a8cb32f19328c45d4c82a33c36a558fbdd8a /libstdc++-v3/testsuite
parentf28b2a4c309411708b0bedcb08551c5483736de3 (diff)
downloadgcc-78c40ba0dfd54cf8afc32abbde104ff72ae7debd.tar.gz
2003-04-28 Benjamin Kosnik <bkoz@redhat.com>
* src/localename.cc: Standardize exception strings. * src/locale.cc: Same. * src/ios.cc: Same. * include/bits/basic_string.tcc: Same. * include/bits/basic_ios.tcc: Same. * include/std/std_bitset.h: Same. * include/ext/ropeimpl.h: Same. * include/bits/stl_vector.h: Same. * include/bits/stl_deque.h: Same. * include/bits/stl_bvector.h: Same. * config/locale/generic/c_locale.cc: Same. * config/locale/gnu/c_locale.cc: Same. * config/locale/ieee_1003.1-2001/codecvt_specializations.h: Same. * testsuite/testsuite_hooks.cc (__gnu_cxx_test): Modify. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@66192 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/testsuite')
-rw-r--r--libstdc++-v3/testsuite/testsuite_hooks.cc7
1 files changed, 2 insertions, 5 deletions
diff --git a/libstdc++-v3/testsuite/testsuite_hooks.cc b/libstdc++-v3/testsuite/testsuite_hooks.cc
index 988ef03620e..9b8d48e1837 100644
--- a/libstdc++-v3/testsuite/testsuite_hooks.cc
+++ b/libstdc++-v3/testsuite/testsuite_hooks.cc
@@ -198,11 +198,8 @@ namespace __gnu_cxx_test
}
catch (std::runtime_error& ex)
{
- // Thrown by generic implemenation.
- if (std::strstr(ex.what(), "unhandled name in generic implementation"))
- exit(0);
- // Thrown by gnu implemenation.
- else if (std::strstr(ex.what(), "unknown name"))
+ // Thrown by generic and gnu implemenation if named locale fails.
+ if (std::strstr(ex.what(), "name not valid"))
exit(0);
else
throw;