diff options
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) |