diff options
author | ayumin <ayumin@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-11-14 16:10:17 +0000 |
---|---|---|
committer | ayumin <ayumin@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-11-14 16:10:17 +0000 |
commit | 40ca7a2265556e28399666d471f1390f01adc2cf (patch) | |
tree | 513cd027373b2f63773bae9729b20fe85c0b1441 /test | |
parent | e1440769f3d8d5dbc5fbf97bf77ac88acb65583e (diff) | |
download | ruby-40ca7a2265556e28399666d471f1390f01adc2cf.tar.gz |
* test/ruby/test_io.rb (test_fcntl_dupfd): fix test error on
SnowLeopard.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33752 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_io.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/ruby/test_io.rb b/test/ruby/test_io.rb index 6382cd7a49..e1ec389dc4 100644 --- a/test/ruby/test_io.rb +++ b/test/ruby/test_io.rb @@ -1919,7 +1919,8 @@ End end def test_fcntl_dupfd - Tempfile.open(self.class.name) do |f| + Tempfile.new(self.class.name) do |f| + f.open fd = f.fcntl(Fcntl::F_DUPFD, 500) begin assert_equal(fd, 500) |