Issue #5850 has been updated by Tomoyuki Chikanaga.


?????????????? GC ??確??????????????????????????以?? test_autoclose ?????????? assertion ??失???????????????????????????try_fdopen ??????????????????100???????????????? IO.for_fd ??????? GC ??????? IO ????????????????????????????????????????????????????????ruby ??????????????????????????????????????????????????????????????????????????????????????????????誤??????????影??????????????????????????????????????????????? try_fdopen ??? 1.times do ... end ????????????????????????????????????(??????????????費?????)??????????????? Snow Leopard ???? Failure ??????????????????????????????????????以??????????????????????????????????????????????????????????????失?????????????????????????

???? test_copy_stream ??? Error ??????????????????????? test_autoclose ??? 2???? IO ??????????????????? fd ???????? open ????????????????????????????????(Tempfile ?????)????????? close ???????????????????????????? close ??????????????置???????????????????????????? IO ??? GC ??????????????????? close(2) ????????????????????????????? fd ??????? IO ?????????????????????????????????????????????????????????????????????????????????? ????????? [Feature #2250] ???????????????? IO.for_fd ?????使????????????????????????

 - test_autoclose ?????????? assertion ??? IO ????????????? finalizer ???設???????????????????????????????????????????????????????????????????????????????????
 - autoclose: true ?????????????????????????????????

????????????????????????????????or代????????????????????????????????修正???????????????????????????????????????
----------------------------------------
Bug #5850: Failure test/ruby/test_io.rb
https://bugs.ruby-lang.org/issues/5850

Author: Ayumu AIZAWA
Status: Open
Priority: Normal
Assignee: 
Category: core
Target version: 2.0.0
ruby -v: ruby 2.0.0dev (2012-01-06 trunk 34219) [x86_64-darwin10.8.0] 


=begin
r34219??? test/ruby/test_io.rb ???1件失??????1件??????????????
????????-j ????????????????????失???????????????????????????????

 0:ruby ???  make test-all TESTS=test/ruby/test_io.rb
 ./miniruby -I./lib -I. -I.ext/common  ./tool/runruby.rb --extout=.ext  -- --disable-gems "./test/runner.rb" --ruby="./miniruby -I./lib -I. -I.ext/common  ./tool/runruby.rb --extout=.ext  -- --disable-gems" test/ruby/test_io.rb
 Run options: "--ruby=./miniruby -I./lib -I. -I.ext/common  ./tool/runruby.rb --extout=.ext  -- --disable-gems"
 
 # Running tests:
 
 .F.............E..................................................................................................
 
 Finished tests in 4.242426s, 26.8714 tests/s, 134.3571 assertions/s.
 
 1) Failure:
 test_autoclose(TestIO) [/Users/ayumin/github/ruby/test/ruby/test_io.rb:1444]:
 Errno::EBADF expected but nothing was raised.
 
 2) Error:
 test_copy_stream(TestIO):
 Errno::EBADF: Bad file descriptor
 /Users/ayumin/github/ruby/test/ruby/test_io.rb:32:in `close'
 /Users/ayumin/github/ruby/test/ruby/test_io.rb:32:in `rescue in block in pipe'
 /Users/ayumin/github/ruby/test/ruby/test_io.rb:29:in `block in pipe'
 
 114 tests, 570 assertions, 1 failures, 1 errors, 0 skips
 
 ruby -v: ruby 2.0.0dev (2012-01-06 trunk 34219) [x86_64-darwin10.8.0]
 make: *** [yes-test-all] Error 2
 0:ruby ???  make test-all TESTS='-j 2 test/ruby/test_io.rb'
 ./miniruby -I./lib -I. -I.ext/common  ./tool/runruby.rb --extout=.ext  -- --disable-gems "./test/runner.rb" --ruby="./miniruby -I./lib -I. -I.ext/common  ./tool/runruby.rb --extout=.ext  -- --disable-gems" -j 2 test/ruby/test_io.rb
 Run options: "--ruby=./miniruby -I./lib -I. -I.ext/common  ./tool/runruby.rb --extout=.ext  -- --disable-gems" -j 2
 
 # Running tests:
 
 .F.............E..................................................................................................
 Retrying...
 
 .F................................................................................................................
 
 
 
 Finished tests in 10.072929s, 11.3175 tests/s, 56.5873 assertions/s.
 
 1) Failure:
 test_autoclose(TestIO) [/Users/ayumin/github/ruby/test/ruby/test_io.rb:1444]:
 Errno::EBADF expected but nothing was raised.
 
 114 tests, 570 assertions, 1 failures, 0 errors, 0 skips
 
 ruby -v: ruby 2.0.0dev (2012-01-06 trunk 34219) [x86_64-darwin10.8.0]
 make: *** [yes-test-all] Error 1
 
=end



-- 
http://redmine.ruby-lang.org