]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
9533-1.cc: Open FIFO for writing with ios_base::in|ios_base::out.
authorMark Mitchell <mark@codesourcery.com>
Fri, 20 Feb 2004 23:51:07 +0000 (23:51 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Fri, 20 Feb 2004 23:51:07 +0000 (23:51 +0000)
* testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc: Open
FIFO for writing with ios_base::in|ios_base::out.
* testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
* testsuite/27_io/objects/char/7.cc: Likewise.
* testsuite/27_io/objects/char/9661-1.cc: Open FIFO for writing
with "r+".

From-SVN: r78195

libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc
libstdc++-v3/testsuite/27_io/basic_filebuf/underflow/char/10097.cc
libstdc++-v3/testsuite/27_io/objects/char/7.cc
libstdc++-v3/testsuite/27_io/objects/char/9661-1.cc

index 37a8b22c590bd1d84de6ad9ed0436cb300189fe0..c842d82a32f7424c0217399528dfb48e6a83ee68 100644 (file)
@@ -1,3 +1,12 @@
+2004-02-20  Mark Mitchell  <mark@codesourcery.com>
+
+       * testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc: Open
+       FIFO for writing with ios_base::in|ios_base::out.
+       * testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
+       * testsuite/27_io/objects/char/7.cc: Likewise.
+       * testsuite/27_io/objects/char/9661-1.cc: Open FIFO for writing
+       with "r+".
+
 2004-02-19  David Edelsohn  <edelsohn@gnu.org>
 
        * 22_locale/collate/compare/wchar_t/2.cc: Change input-charset
index 2839e2f722c805013b43f95dd2286db2ee5f28db..19f0fcee20cc9b1516a05df0bbccfa7c95c411ca 100644 (file)
@@ -53,7 +53,7 @@ void test_01()
   else if (fval == 0)
     {
       filebuf ofbuf;
-      ofbuf.open(name, ios_base::out);
+      ofbuf.open(name, ios_base::in|ios_base::out);
       VERIFY( ofbuf.is_open() );
       sleep(1);
 
index c3c3cf19048ebac49f606ac5b7ab16ea153bf716..aaaf1d2d7b64f2bd58807c4c3938b0f37562a4ec 100644 (file)
@@ -67,7 +67,8 @@ void test16()
   else if (fval == 0)
     {
       filebuf fbout;
-      fbout.open(name, ios_base::out);
+      fbout.open(name, ios_base::in|ios_base::out);
+      VERIFY ( fbout.is_open() );
       fbout.sputn("0123456789", 10);
       fbout.pubsync();
       sleep(2);
index 06983d9fb7a703fe30c42010d6f7ee0621a11696..13574e67c92f5cf1918755ff9c72721f59060107 100644 (file)
@@ -50,7 +50,8 @@ void test07()
     {
       filebuf fbout;
       sleep(1);
-      fbout.open(name, ios_base::out);
+      fbout.open(name, ios_base::in|ios_base::out);
+      VERIFY ( fbout.is_open() );
       cout.rdbuf(&fbout);
       fbout.sputc('a');
       sleep(2);
index 5b1780e1f0d8c764df671223ad7c2772fae09059..942cb09438960189be221a90bd95bc6ec0f232a8 100644 (file)
@@ -50,7 +50,8 @@ void test01()
   if (child == 0)
     {
       sleep(1);
-      FILE* file = fopen(name, "w");
+      FILE* file = fopen(name, "r+");
+      VERIFY (file != NULL);
       fputs("Whatever\n", file);
       fflush(file);
       sleep(2);