summaryrefslogtreecommitdiff
path: root/bootstraptest
diff options
context:
space:
mode:
Diffstat (limited to 'bootstraptest')
-rw-r--r--bootstraptest/test_knownbug.rb8
1 files changed, 6 insertions, 2 deletions
diff --git a/bootstraptest/test_knownbug.rb b/bootstraptest/test_knownbug.rb
index 03feb653a3..07ba5e8e2c 100644
--- a/bootstraptest/test_knownbug.rb
+++ b/bootstraptest/test_knownbug.rb
@@ -6,11 +6,15 @@
assert_equal 'ok', %q{
begin
r, w = IO.pipe
+ w.write "foo"
w.close
# assert_raise(IOError, "[ruby-dev:31650]") { 20000.times { r.ungetc "a" } }
+ r.getc
20000.times { r.ungetc "a" }
-rescue IOError
- :ok
+ data = r.read
+ if data.size == 20002 && data[-5..-1] == "aaaoo"
+ :ok
+ end
ensure
r.close
end