[PATCH] RE: Testsuite problem

Pétur Runólfsson peturr02@ru.is
Tue Apr 27 09:05:00 GMT 2004


Zack Weinberg wrote:
> Oh, yuck, you're right.  In that case the only way to make this test
> reliably test what it's supposed to, will be to introduce a .fdopen()
> extension method

There already is such a thing. It's named stdio_filebuf.

> so that we can provide exactly the right flags to the
> open() system call.

Which is exactly what the attached patch does.

Petur

2004-04-27  Petur Runolfsson  <peturr02@ru.is>

	* testsuite/27_io/basic_filebuf/close/char/9964.cc (test_07):
	Open fifo with open(name, O_WRONLY), make sure close fails,
	use alarm to prevent child from hanging, add comments.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: 9964.cc.diff-2
Type: application/octet-stream
Size: 3082 bytes
Desc: 9964.cc.diff-2
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20040427/a18ab3e8/attachment.obj>


More information about the Libstdc++ mailing list