[PATCH] libstdc++/2913 & libstdc++/4879
Brad Garcia
garsh@attbi.com
Wed Dec 19 05:32:00 GMT 2001
On Tue, 18 Dec 2001, Benjamin Kosnik wrote:
> There has to be testcase entries for these changes. Please add them and
> include a ChangeLog entry.
I'm not sure how to write a testcase for this.
Basically, I need a way to force either (both?) a write to a file or
(and?) a close of a file to fail, so that the close() on the ofstream
will fail and set the state bits appropriately (or not, for non-patched
versions of the library).
I know this is possible if I completely fill up the partition where the
file exists, but I don't think we want to do this in a testcase, right?
So if anybody has any good ideas, I would love to hear them.
If not, then what other options are there Benjamin?
Brad Garcia
More information about the Libstdc++
mailing list