gcc/libstdc++-v3/testsuite
Benjamin Kosnik 12841eb3d0 re PR libstdc++/9371 (Bad exception handling in i/ostream::operator>>/<<(streambuf*))
2003-11-26  Benjamin Kosnik  <bkoz@redhat.com>

	PR libstdc++/9371
	PR libstdc++/9546
	PR libstdc++/10093
	PR libstdc++/10095
	* include/bits/basic_ios.h (basic_ios::setstate): Elide if goodbit.
	(basic_ios::_M_setstate): Consolidate common error handling code.
	* include/bits/basic_ios.tcc: Tweak.
	* include/bits/fstream.tcc: Tweak.
	* include/bits/istream.tcc: Use _M_setstate for common exception
	handling. Move setstate calls after catch.
	(basic_istream::tellg): Check for exceptions thrown by streambuf
	virtual functions.
	(basic_istream::seekg): Same.
	* include/bits/ostream.tcc: Same, but for ostream.
	(basic_ostream::flush): Check for exceptions thrown by streambuf
	virtual functions.
	(basic_istream::tellp): Same.
	(basic_istream::seekp): Same.
	* include/bits/locale_facets.tcc: Tweak.
	* include/bits/streambuf.tcc: Tweak.
	(__copy_streambufs): Propagate exceptions.
	* testsuite/testsuite_io.h (fail_streambuf): New.
	(fail_num_get): New.
	(fail_num_put): New.
	(facet_error): New.
	(underflow_error): New.
	(overflow_error): New.
	(positioning_error): New.
	* testsuite/27_io/basic_istream/exceptions/char/9561.cc: Tweak.
	* testsuite/27_io/basic_istream/extractors_arithmetic/char/
        exceptions_badbit_throw.cc, exceptions_failbit.cc,
        exceptions_failbit_throw.cc: New.
	* testsuite/27_io/basic_istream/extractors_other/char/
	error_failbit.cc, exceptions_badbit_throw.cc,
        exceptions_failbit_throw.cc, exceptions_null.cc: New.
	* testsuite/27_io/basic_istream/seekg/char/exceptions_badbit_throw.cc:
	New.
	* testsuite/27_io/basic_istream/tellg/char/exceptions_badbit_throw.cc:
	New.
	* testsuite/27_io/basic_ostream/flush/char/exceptions_badbit_throw.cc:
	New.
	* testsuite/27_io/basic_ostream/inserters_arithmetic/char/
	exceptions_badbit_throw.cc, exceptions_failbit_throw.cc: New.
	* testsuite/27_io/basic_ostream/inserters_other/char/
	error_failbit.cc, exceptions_badbit_throw.cc,
        exceptions_failbit_throw.cc, exceptions_null.cc: New.
	* testsuite/27_io/basic_ostream/seekp/char/exceptions_badbit_throw.cc:
	New.
	* testsuite/27_io/basic_ostream/tellp/char/exceptions_badbit_throw.cc:
	New.

From-SVN: r73979
2003-11-27 08:14:25 +00:00
..
17_intro locale_facets.tcc: Tweak to avoid warnings. 2003-09-23 20:03:30 +00:00
18_support locale_facets.tcc: Tweak to avoid warnings. 2003-09-23 20:03:30 +00:00
19_diagnostics locale_facets.tcc: Tweak to avoid warnings. 2003-09-23 20:03:30 +00:00
20_util [multiple changes] 2003-11-11 20:09:16 +00:00
21_strings re PR libstdc++/10081 (basic_ios::_M_cache_locale leaves NULL members in the face of unknown locales) 2003-10-20 22:11:40 +00:00
22_locale 8.cc: New test, summarizing the discussion ensuing libstdc++/12988. 2003-11-17 08:39:57 +00:00
23_containers debug.html: Users are allowed to specialize in namespace __gnu_debug... 2003-11-14 00:15:00 +00:00
24_iterators streambuf_iterator.h (ostreambuf_iterator): Remove non-standard throw specs. 2003-11-24 21:02:39 +00:00
25_algorithms [multiple changes] 2003-11-11 20:09:16 +00:00
26_numerics locale_facets.tcc: Tweak to avoid warnings. 2003-09-23 20:03:30 +00:00
27_io re PR libstdc++/9371 (Bad exception handling in i/ostream::operator>>/<<(streambuf*)) 2003-11-27 08:14:25 +00:00
backward re PR libstdc++/11460 (Incorrect use of int_type in strstreambuf::pbackfail) 2003-10-12 20:03:18 +00:00
config
data
demangle re PR libstdc++/12947 (Demangler bug) 2003-11-12 02:18:37 +00:00
ext locale_facets.tcc: Tweak to avoid warnings. 2003-09-23 20:03:30 +00:00
lib libstdc++.exp: Add DYLD_LIBRARY_PATH for darwin. 2003-11-19 05:51:18 +01:00
libstdc++-dg libstdc++.exp: Add DYLD_LIBRARY_PATH for darwin. 2003-11-19 05:51:18 +01:00
performance codecvt_members.cc (codecvt::do_length): Rewrite, using both mbsnrtowcs and mbrtowc in a loop... 2003-11-25 21:41:28 +00:00
thread locale_facets.tcc: Tweak to avoid warnings. 2003-09-23 20:03:30 +00:00
abi_check.cc
Makefile.am
Makefile.in
printnow.c
testsuite_allocator.cc
testsuite_allocator.h
testsuite_character.h re PR libstdc++/12790 (basic_filebuf doesn't handle stateful encodings) 2003-11-04 05:27:41 +00:00
testsuite_hooks.cc re PR libstdc++/10081 (basic_ios::_M_cache_locale leaves NULL members in the face of unknown locales) 2003-10-20 22:11:40 +00:00
testsuite_hooks.h re PR libstdc++/10081 (basic_ios::_M_cache_locale leaves NULL members in the face of unknown locales) 2003-10-20 22:11:40 +00:00
testsuite_io.h re PR libstdc++/9371 (Bad exception handling in i/ostream::operator>>/<<(streambuf*)) 2003-11-27 08:14:25 +00:00
testsuite_performance.h