* test/ruby/test_io.rb (TestIO#test_O_CLOEXEC): add null check.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31611 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
kosaki 2011-05-17 16:04:17 +00:00
parent 63d3eec7c4
commit b2d3995f4c
2 changed files with 8 additions and 4 deletions

View File

@ -1,3 +1,7 @@
Wed May 18 01:02:53 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* test/ruby/test_io.rb (TestIO#test_O_CLOEXEC): add null check.
Tue May 17 21:24:04 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* thread.c (rb_mutex_lock): remove remove_signal_thread_list() call.

View File

@ -1281,10 +1281,10 @@ class TestIO < Test::Unit::TestCase
while (e = ary.shift) != nil
e.close
end
arg.close unless arg.closed?
argw.close unless argw.closed?
ret.close unless ret.closed?
retw.close unless retw.closed?
arg.close unless !arg || arg.closed?
argw.close unless !argw || argw.closed?
ret.close unless !ret || ret.closed?
retw.close unless !retw || retw.closed?
end
end
end