diff options
5 files changed, 16 insertions, 1 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 08b5642190b..917afa6b0e3 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,5 +1,13 @@ 2004-02-14 Paolo Carlini <pcarlini@suse.de> + * testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc: Make + sure the exception is actually thrown. + * testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc: Ditto. + * testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc: Ditto. + * testsuite/27_io/basic_filebuf/sync/char/9182-1.cc: Ditto. + +2004-02-14 Paolo Carlini <pcarlini@suse.de> + PR libstdc++/13858 * include/bits/fstream.tcc (basic_filebuf<>::_M_convert_to_external): In case of conversion errors, throw ios_failure; simplify. diff --git a/libstdc++-v3/testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc b/libstdc++-v3/testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc index 862d0fd3607..e388d51e3d8 100644 --- a/libstdc++-v3/testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc +++ b/libstdc++-v3/testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc @@ -22,6 +22,7 @@ #include <fstream> #include <locale> +#include <testsuite_hooks.h> const char name_07[] = "filebuf_virtuals-7.txt"; // empty file, need to create @@ -63,6 +64,7 @@ void test14() { fbuf1.sputn("onne", 4); fbuf1.close(); + VERIFY( false ); } catch (exception&) { diff --git a/libstdc++-v3/testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc b/libstdc++-v3/testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc index 03e46d1b588..0ac55b5a826 100644 --- a/libstdc++-v3/testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc +++ b/libstdc++-v3/testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc @@ -19,6 +19,7 @@ // 27.8.1.4 Overridden virtual functions #include <fstream> +#include <testsuite_hooks.h> void test03() { @@ -36,6 +37,7 @@ void test03() // seekoff should flush the output sequence, which will fail // if the output buffer contains illegal characters. fb.pubseekoff(0, ios_base::cur); + VERIFY( false ); } catch (exception&) { diff --git a/libstdc++-v3/testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc b/libstdc++-v3/testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc index bb0f4f2d650..dbaade3c979 100644 --- a/libstdc++-v3/testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc +++ b/libstdc++-v3/testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc @@ -20,6 +20,7 @@ #include <locale> #include <fstream> +#include <testsuite_hooks.h> void test01() { @@ -36,6 +37,7 @@ void test01() try { fb.pubseekpos(pos); + VERIFY( false ); } catch (exception&) { diff --git a/libstdc++-v3/testsuite/27_io/basic_filebuf/sync/char/9182-1.cc b/libstdc++-v3/testsuite/27_io/basic_filebuf/sync/char/9182-1.cc index e04c9b282c1..bc5b3dc086d 100644 --- a/libstdc++-v3/testsuite/27_io/basic_filebuf/sync/char/9182-1.cc +++ b/libstdc++-v3/testsuite/27_io/basic_filebuf/sync/char/9182-1.cc @@ -22,6 +22,7 @@ #include <fstream> #include <locale> +#include <testsuite_hooks.h> const char name_07[] = "filebuf_virtuals-7.txt"; // empty file, need to create @@ -62,7 +63,7 @@ void test13() { fbuf1.sputn("ison", 4); fbuf1.pubsync(); - fbuf1.close(); + VERIFY( false ); } catch (exception&) { |