summaryrefslogtreecommitdiff
path: root/test/ruby/test_fiber.rb
diff options
context:
space:
mode:
authorYusuke Endoh <mame@ruby-lang.org>2021-04-28 02:11:32 +0900
committerYusuke Endoh <mame@ruby-lang.org>2021-04-28 02:13:32 +0900
commit99eebf8260f2e6644333c795d200fef215f0006e (patch)
treee276d18fb5d5d5f34f1c255f7792a29164873aaf /test/ruby/test_fiber.rb
parent72eacd739d9bbbf1ddfd9ff2c3ce6bf4bb23b3b3 (diff)
test/ruby/test_fiber.rb: reduce the count of object creation to cause GC
... on Solaris. This is the same as 547887138f19959f649b1c0dbcde5659ae3878ed. http://rubyci.s3.amazonaws.com/solaris10-gcc/ruby-master/log/20210427T160003Z.fail.html.gz ``` [ 7667/20965] TestFiber#test_fork_from_fiber/export/home/users/chkbuild/cb-gcc/tmp/build/20210427T160003Z/ruby/test/ruby/test_fiber.rb:397:in `transfer': can't alloc machine stack to fiber (1 x 139264 bytes): Not enough space (FiberError) from /export/home/users/chkbuild/cb-gcc/tmp/build/20210427T160003Z/ruby/test/ruby/test_fiber.rb:397:in `block (6 levels) in test_fork_from_fiber' from /export/home/users/chkbuild/cb-gcc/tmp/build/20210427T160003Z/ruby/test/ruby/test_fiber.rb:396:in `times' from /export/home/users/chkbuild/cb-gcc/tmp/build/20210427T160003Z/ruby/test/ruby/test_fiber.rb:396:in `block (5 levels) in test_fork_from_fiber' from /export/home/users/chkbuild/cb-gcc/tmp/build/20210427T160003Z/ruby/test/ruby/test_fiber.rb:392:in `fork' from /export/home/users/chkbuild/cb-gcc/tmp/build/20210427T160003Z/ruby/test/ruby/test_fiber.rb:392:in `block (4 levels) in test_fork_from_fiber' = 0.88 s ... 1) Failure: TestFiber#test_fork_from_fiber [/export/home/users/chkbuild/cb-gcc/tmp/build/20210427T160003Z/ruby/test/ruby/test_fiber.rb:409]: [ruby-core:41456]. <0> expected but was <1>. ```
Diffstat (limited to 'test/ruby/test_fiber.rb')
-rw-r--r--test/ruby/test_fiber.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_fiber.rb b/test/ruby/test_fiber.rb
index b2518c32f0..26f8268140 100644
--- a/test/ruby/test_fiber.rb
+++ b/test/ruby/test_fiber.rb
@@ -392,7 +392,7 @@ class TestFiber < Test::Unit::TestCase
xpid = fork do
# enough to trigger GC on old root fiber
count = 10000
- count = 1000 if /openbsd/i =~ RUBY_PLATFORM
+ count = 1000 if /solaris|openbsd/i =~ RUBY_PLATFORM
count.times do
Fiber.new {}.transfer
Fiber.new { Fiber.yield }