summaryrefslogtreecommitdiffstats
path: root/test/io/nonblock/test_flush.rb
diff options
context:
space:
mode:
authorkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-08-05 09:04:13 +0000
committerkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-08-05 09:04:13 +0000
commit67fd07d6eb6f20bbaf33f25f69369c5ed1c86fd0 (patch)
tree6e83af74d85ab013492d39682499c780b4aa50c2 /test/io/nonblock/test_flush.rb
parent0116699507500c0886689d5742312b45016de06a (diff)
downloadruby-67fd07d6eb6f20bbaf33f25f69369c5ed1c86fd0.tar.gz
ruby-67fd07d6eb6f20bbaf33f25f69369c5ed1c86fd0.tar.xz
ruby-67fd07d6eb6f20bbaf33f25f69369c5ed1c86fd0.zip
* test/io/nonblock/test_flush.rb (TestIONonblock#test_flush):
rescue some exceptions. [ruby-dev:35638] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18372 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/io/nonblock/test_flush.rb')
-rw-r--r--test/io/nonblock/test_flush.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/io/nonblock/test_flush.rb b/test/io/nonblock/test_flush.rb
index b41afe110..2217dbcec 100644
--- a/test/io/nonblock/test_flush.rb
+++ b/test/io/nonblock/test_flush.rb
@@ -24,7 +24,11 @@ class TestIONonblock < Test::Unit::TestCase
result << s
end
}
- w.flush # assert_raise(IOError, "[ruby-dev:24985]") {w.flush}
+ begin
+ w.flush # assert_raise(IOError, "[ruby-dev:24985]") {w.flush}
+ rescue Errno::EBADF, IOError
+ # ignore [ruby-dev:35638]
+ end
assert_nothing_raised {t.join}
}
assert_equal(4097, result.size)