Commit f196bdc4 by Mark Mitchell Committed by Mark Mitchell

9533-1.cc: Open FIFO for writing with ios_base::in|ios_base::out.

	* 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
parent ecd11694
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> 2004-02-19 David Edelsohn <edelsohn@gnu.org>
* 22_locale/collate/compare/wchar_t/2.cc: Change input-charset * 22_locale/collate/compare/wchar_t/2.cc: Change input-charset
......
...@@ -53,7 +53,7 @@ void test_01() ...@@ -53,7 +53,7 @@ void test_01()
else if (fval == 0) else if (fval == 0)
{ {
filebuf ofbuf; filebuf ofbuf;
ofbuf.open(name, ios_base::out); ofbuf.open(name, ios_base::in|ios_base::out);
VERIFY( ofbuf.is_open() ); VERIFY( ofbuf.is_open() );
sleep(1); sleep(1);
......
...@@ -67,7 +67,8 @@ void test16() ...@@ -67,7 +67,8 @@ void test16()
else if (fval == 0) else if (fval == 0)
{ {
filebuf fbout; 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.sputn("0123456789", 10);
fbout.pubsync(); fbout.pubsync();
sleep(2); sleep(2);
......
...@@ -50,7 +50,8 @@ void test07() ...@@ -50,7 +50,8 @@ void test07()
{ {
filebuf fbout; filebuf fbout;
sleep(1); sleep(1);
fbout.open(name, ios_base::out); fbout.open(name, ios_base::in|ios_base::out);
VERIFY ( fbout.is_open() );
cout.rdbuf(&fbout); cout.rdbuf(&fbout);
fbout.sputc('a'); fbout.sputc('a');
sleep(2); sleep(2);
......
...@@ -50,7 +50,8 @@ void test01() ...@@ -50,7 +50,8 @@ void test01()
if (child == 0) if (child == 0)
{ {
sleep(1); sleep(1);
FILE* file = fopen(name, "w"); FILE* file = fopen(name, "r+");
VERIFY (file != NULL);
fputs("Whatever\n", file); fputs("Whatever\n", file);
fflush(file); fflush(file);
sleep(2); sleep(2);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment