From 40ca7a2265556e28399666d471f1390f01adc2cf Mon Sep 17 00:00:00 2001 From: ayumin Date: Mon, 14 Nov 2011 16:10:17 +0000 Subject: [PATCH] * 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 --- ChangeLog | 5 +++++ test/ruby/test_io.rb | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index e529101120..cdf77e6c83 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Tue Nov 15 01:03:32 2011 Ayumu AIZAWA + + * test/ruby/test_io.rb (test_fcntl_dupfd): fix test error on + SnowLeopard. + Mon Nov 14 22:06:02 2011 Tanaka Akira * ext/openssl/ossl_pkey.c (ossl_pkey_new_from_file): set close-on-exec 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)