From: Mike Stok Date: 2009-01-28T21:45:46+09:00 Subject: [ruby-core:21633] [Bug #1066] Frequent failure: test_io.rb test 2 on OS X 10.5.6 Bug #1066: Frequent failure: test_io.rb test 2 on OS X 10.5.6 http://redmine.ruby-lang.org/issues/show/1066 Author: Mike Stok Status: Open, Priority: Normal Category: test, Target version: 1.9.1 Reproducible Version: trunk Many times when I build the ruby trunk downloaded from http://svn.ruby-lang.org/repos/ruby/trunk the test_io.rb output is: test_io.rb .F...................................................... and at the end of the tests there is this failure message: #223 test_io.rb:11:in `': begin require "io/nonblock" r, w = IO.pipe w.nonblock = true w.write_nonblock("a" * 100000) w.nonblock = false t1 = Thread.new { w.write("b" * 4096) } t2 = Thread.new { w.write("c" * 4096) } sleep 0.5 r.sysread(4096).length sleep 0.5 r.sysread(4096).length t1.join t2.join rescue LoadError end #=> not finished in 10 seconds [ruby-dev:32566] FAIL 1/928 tests failed make: *** [btest-ruby] Error 1 Maybe one time in twenty it succeeds, but I have not tried to check whether this is revision dependent. The latest revision I tested and which failed the test was 21852 ---------------------------------------- http://redmine.ruby-lang.org