diff options
author | Takashi Kokubun <takashikkbn@gmail.com> | 2019-09-06 10:34:33 +0900 |
---|---|---|
committer | Takashi Kokubun <takashikkbn@gmail.com> | 2019-09-06 10:34:33 +0900 |
commit | 3b60e5e6bc2c84b971bea9c8312eb5d33ada2ff5 (patch) | |
tree | d7e281b792c08f9b96b22edd2b74e1bdbda896c7 /test | |
parent | dd81af7b6a7539473b6d7a7e35637b4a7d986523 (diff) | |
download | ruby-3b60e5e6bc2c84b971bea9c8312eb5d33ada2ff5.tar.gz |
Try shrinking tested VM stack max
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_fiber.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ruby/test_fiber.rb b/test/ruby/test_fiber.rb index 3b2faa9802..2d7cbc8a9e 100644 --- a/test/ruby/test_fiber.rb +++ b/test/ruby/test_fiber.rb @@ -361,7 +361,7 @@ class TestFiber < Test::Unit::TestCase def test_stack_size h_default = eval(invoke_rec('p RubyVM::DEFAULT_PARAMS', nil, nil, false)) h_0 = eval(invoke_rec('p RubyVM::DEFAULT_PARAMS', 0, 0, false)) - h_large = eval(invoke_rec('p RubyVM::DEFAULT_PARAMS', 1024 * 1024 * 10, 1024 * 1024 * 10, false)) + h_large = eval(invoke_rec('p RubyVM::DEFAULT_PARAMS', 1024 * 1024 * 5, 1024 * 1024 * 10, false)) assert_operator(h_default[:fiber_vm_stack_size], :>, h_0[:fiber_vm_stack_size]) assert_operator(h_default[:fiber_vm_stack_size], :<, h_large[:fiber_vm_stack_size]) @@ -374,7 +374,7 @@ class TestFiber < Test::Unit::TestCase assert_operator(size_default, :>, 0) size_0 = invoke_rec script, 0, nil assert_operator(size_default, :>, size_0) - size_large = invoke_rec script, 1024 * 1024 * 10, nil + size_large = invoke_rec script, 1024 * 1024 * 5, nil assert_operator(size_default, :<, size_large) return if /mswin|mingw/ =~ RUBY_PLATFORM |