From 66f8e8bbcec5fa1d3c4e61f948a6e895b368a89f Mon Sep 17 00:00:00 2001 From: ayumin Date: Mon, 14 Nov 2011 17:02:10 +0000 Subject: 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 --- test/ruby/test_io.rb | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'test/ruby/test_io.rb') 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 -- cgit v1.2.3