diff options
author | ayumin <ayumin@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-11-14 17:02:10 +0000 |
---|---|---|
committer | ayumin <ayumin@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-11-14 17:02:10 +0000 |
commit | 66f8e8bbcec5fa1d3c4e61f948a6e895b368a89f (patch) | |
tree | 34d17e9b4183020154a221f289b3bf6c744d0525 /test/ruby/test_io.rb | |
parent | 40ca7a2265556e28399666d471f1390f01adc2cf (diff) | |
download | ruby-66f8e8bbcec5fa1d3c4e61f948a6e895b368a89f.tar.gz |
revert r33752 and fix test case based [ruby-dev:44866].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33753 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_io.rb')
-rw-r--r-- | test/ruby/test_io.rb | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/test/ruby/test_io.rb b/test/ruby/test_io.rb index e1ec389dc4..7256e6fc16 100644 --- a/test/ruby/test_io.rb +++ b/test/ruby/test_io.rb @@ -1919,11 +1919,10 @@ End end def test_fcntl_dupfd - Tempfile.new(self.class.name) do |f| - f.open - fd = f.fcntl(Fcntl::F_DUPFD, 500) + Tempfile.open(self.class.name) do |f| + fd = f.fcntl(Fcntl::F_DUPFD, 255) begin - assert_equal(fd, 500) + assert_equal(fd, 255) ensure IO.for_fd(fd).close end |