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
This commit is contained in:
Mark Mitchell 2004-02-20 23:51:07 +00:00 committed by Mark Mitchell
parent ecd116948f
commit f196bdc447
5 changed files with 16 additions and 4 deletions

View 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

View 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);

View 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);

View 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);

View 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);