mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
test/ruby/test_fiber.rb: reduce the count of object creation to cause GC
The test consistently fails on OpenBSD.
20190903
T010009Z.fail.html.gz
```
1) Failure:
TestFiber#test_fork_from_fiber [/home/chkbuild/chkbuild/tmp/build/20190903T010009Z/ruby/test/ruby/test_fiber.rb:327]:
[ruby-core:41456].
<0> expected but was
<1>.
```
This commit is contained in:
parent
e6c4ea22d6
commit
547887138f
1 changed files with 3 additions and 1 deletions
|
@ -311,7 +311,9 @@ class TestFiber < Test::Unit::TestCase
|
|||
Fiber.new {
|
||||
xpid = fork do
|
||||
# enough to trigger GC on old root fiber
|
||||
10000.times do
|
||||
count = 10000
|
||||
count = 1000 if /openbsd/i =~ RUBY_PLATFORM
|
||||
count.times do
|
||||
Fiber.new {}.transfer
|
||||
Fiber.new { Fiber.yield }
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue