mirror of
https://github.com/ruby/ruby.git
synced 2025-09-17 09:33:59 +02:00
* test/ruby/test_gc.rb: catch up last commit.
Now RUBY_GC_OLDSPACE_LIMIT(...) is RUBY_GC_OLDMALLOC_LIMIT(...). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43834 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
c1382f3ab5
commit
15bbf34c69
2 changed files with 11 additions and 6 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
Mon Nov 25 03:59:45 2013 Koichi Sasada <ko1@atdot.net>
|
||||||
|
|
||||||
|
* test/ruby/test_gc.rb: catch up last commit.
|
||||||
|
Now RUBY_GC_OLDSPACE_LIMIT(...) is RUBY_GC_OLDMALLOC_LIMIT(...).
|
||||||
|
|
||||||
Mon Nov 25 03:10:46 2013 Koichi Sasada <ko1@atdot.net>
|
Mon Nov 25 03:10:46 2013 Koichi Sasada <ko1@atdot.net>
|
||||||
|
|
||||||
* gc.c: change terminology OLDSPACE -> OLDMALLOC.
|
* gc.c: change terminology OLDSPACE -> OLDMALLOC.
|
||||||
|
|
|
@ -147,14 +147,14 @@ class TestGc < Test::Unit::TestCase
|
||||||
assert_in_out_err([env, "-w", "-e", "exit"], "", [], /RUBY_GC_MALLOC_LIMIT_GROWTH_FACTOR=2.0/, "")
|
assert_in_out_err([env, "-w", "-e", "exit"], "", [], /RUBY_GC_MALLOC_LIMIT_GROWTH_FACTOR=2.0/, "")
|
||||||
|
|
||||||
env = {
|
env = {
|
||||||
"RUBY_GC_OLDSPACE_LIMIT" => "60000000",
|
"RUBY_GC_OLDMALLOC_LIMIT" => "60000000",
|
||||||
"RUBY_GC_OLDSPACE_LIMIT_MAX" => "160000000",
|
"RUBY_GC_OLDMALLOC_LIMIT_MAX" => "160000000",
|
||||||
"RUBY_GC_OLDSPACE_LIMIT_GROWTH_FACTOR" => "2.0"
|
"RUBY_GC_OLDMALLOC_LIMIT_GROWTH_FACTOR" => "2.0"
|
||||||
}
|
}
|
||||||
assert_normal_exit("exit", "", :child_env => env)
|
assert_normal_exit("exit", "", :child_env => env)
|
||||||
assert_in_out_err([env, "-w", "-e", "exit"], "", [], /RUBY_GC_OLDSPACE_LIMIT=6000000/, "")
|
assert_in_out_err([env, "-w", "-e", "exit"], "", [], /RUBY_GC_OLDMALLOC_LIMIT=6000000/, "")
|
||||||
assert_in_out_err([env, "-w", "-e", "exit"], "", [], /RUBY_GC_OLDSPACE_LIMIT_MAX=16000000/, "")
|
assert_in_out_err([env, "-w", "-e", "exit"], "", [], /RUBY_GC_OLDMALLOC_LIMIT_MAX=16000000/, "")
|
||||||
assert_in_out_err([env, "-w", "-e", "exit"], "", [], /RUBY_GC_OLDSPACE_LIMIT_GROWTH_FACTOR=2.0/, "")
|
assert_in_out_err([env, "-w", "-e", "exit"], "", [], /RUBY_GC_OLDMALLOC_LIMIT_GROWTH_FACTOR=2.0/, "")
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_profiler_enabled
|
def test_profiler_enabled
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue