9182-2.cc: Make sure the exception is actually thrown.
authorPaolo Carlini <pcarlini@suse.de>
Sat, 14 Feb 2004 20:46:14 +0000 (20:46 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Sat, 14 Feb 2004 20:46:14 +0000 (20:46 +0000)
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.

From-SVN: r77828

libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/27_io/basic_filebuf/overflow/char/9182-2.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/seekoff/wchar_t/3.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/seekpos/wchar_t/1.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/sync/char/9182-1.cc

index 08b5642..917afa6 100644 (file)
@@ -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.
index 862d0fd..e388d51 100644 (file)
@@ -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&)
     {
index 03e46d1..0ac55b5 100644 (file)
@@ -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&)
     {
index bb0f4f2..dbaade3 100644 (file)
@@ -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&)
     {
index e04c9b2..bc5b3dc 100644 (file)
@@ -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&)
     {