Bug #15362 » 0001-Add-a-test-for-Bug-14561.patch
test/ruby/test_fiber.rb | ||
---|---|---|
}.value
|
||
assert_equal :ok, ret, '[Bug #14642]'
|
||
end
|
||
def test_machine_stack_gc
|
||
assert_normal_exit <<-RUBY, '[Bug #14561]', timeout: 10
|
||
enum = Enumerator.new { |y| y << 1 }
|
||
thread = Thread.new { enum.peek }
|
||
thread.join
|
||
sleep 5 # pause until thread cache wait time runs out. Native thread exits.
|
||
GC.start
|
||
RUBY
|
||
end
|
||
end
|
- « Previous
- 1
- 2
- Next »