diff options
| author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-02-20 01:09:21 +0000 |
|---|---|---|
| committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-02-20 01:09:21 +0000 |
| commit | 4472f136a1e6ef97aef89f978c864ae8d23a914e (patch) | |
| tree | 81678ccd31ab6e16ee1e257fbecfffc8e91db074 /test/ruby | |
| parent | c4ec5f32330cddcd46baaab77b8c41e27c4e7458 (diff) | |
| download | ruby-4472f136a1e6ef97aef89f978c864ae8d23a914e.tar.gz ruby-4472f136a1e6ef97aef89f978c864ae8d23a914e.tar.xz ruby-4472f136a1e6ef97aef89f978c864ae8d23a914e.zip | |
* io.c (open_key_args): set arg->io even if no options passed.
[ruby-dev:33072]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15551 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby')
| -rw-r--r-- | test/ruby/test_io.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/ruby/test_io.rb b/test/ruby/test_io.rb index 3381cda8d..ae26609a2 100644 --- a/test/ruby/test_io.rb +++ b/test/ruby/test_io.rb @@ -55,4 +55,10 @@ class TestIO < Test::Unit::TestCase ensure r.close end + + def test_rubydev33072 + assert_raise(Errno::ENOENT, "[ruby-dev:33072]") do + File.read("empty", nil, nil, {}) + end + end end |
