Project

General

Profile

Backport #2609

threaded tests fail in 1.9.1 on OS X 10.5

Added by hramrach (Michal Suchanek) almost 10 years ago. Updated 4 months ago.

Status:
Closed
Priority:
Normal
[ruby-core:27603]

Description

=begin
This is not 100% reliably reproducible but make test often fails.

OS X 10.5.8 9L30

#228 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]

another test failing less often - also thread related.

#921 test_thread.rb:191:in `':
begin
100.times do |i|
begin
Thread.start(Thread.current) {|u| u.raise }
raise
rescue
ensure
end
end
rescue
100
end
#=> "" (expected "100") [ruby-dev:31371]
FAIL 1/945 tests failed
=end

History

#1

Updated by naruse (Yui NARUSE) almost 10 years ago

  • Status changed from Open to Assigned
  • Assignee set to yugui (Yuki Sonoda)
  • Target version set to 1.9.1

=begin
They are considered as the problem of tests, and they are fixed in trunk:

  • r24232 for test_io.rb
  • r24850 for test_thread.rb =end
#2

Updated by jeremyevans0 (Jeremy Evans) 4 months ago

  • Status changed from Assigned to Closed
  • Description updated (diff)

Also available in: Atom PDF