Project

General

Profile

Bug #1066

Frequent failure: test_io.rb test 2 on OS X 10.5.6

Added by mikestok (Mike Stok) over 11 years ago. Updated almost 9 years ago.

Status:
Rejected
Priority:
Normal
Target version:
ruby -v:
-
Backport:
[ruby-core:21633]

Description

=begin
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
=end


Files

0 (2.27 KB) 0 printf-debug.patch akr (Akira Tanaka), 02/03/2009 05:50 PM

Related issues

Related to Ruby master - Bug #2008: test_io.rb: test 2 fails on FreeBSDClosedakr (Akira Tanaka)08/27/2009Actions
Has duplicate Ruby master - Bug #1093: make test failsClosedakr (Akira Tanaka)02/03/2009Actions

Also available in: Atom PDF