From 8eecb0a9f9a19bd3327a054c743dff2b825dc97a Mon Sep 17 00:00:00 2001 From: kosaki Date: Sat, 8 Oct 2011 10:37:23 +0000 Subject: merge revision(s) 33379: * gc.c (rb_gc_set_params): output GC parameter change messages only if -w/-v options are specified. these messages are output to stderr, not to stdout. [ruby-core:39795] [Bug #5380] * test/ruby/test_gc.rb (test_gc_parameter): add test for it. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@33433 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_gc.rb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'test') diff --git a/test/ruby/test_gc.rb b/test/ruby/test_gc.rb index b294c5445e..736f9349d3 100644 --- a/test/ruby/test_gc.rb +++ b/test/ruby/test_gc.rb @@ -86,6 +86,12 @@ class TestGc < Test::Unit::TestCase "RUBY_GC_MALLOC_LIMIT" => "60000000", "RUBY_HEAP_MIN_SLOTS" => "100000" } - assert_normal_exit("1", "[ruby-core:39777]", :child_env => env) + assert_normal_exit("exit", "[ruby-core:39777]", :child_env => env) + + env = { + "RUBY_HEAP_MIN_SLOTS" => "100000" + } + assert_in_out_err([env, "-e", "exit"], "", [], [], "[ruby-core:39795]") + assert_in_out_err([env, "-w", "-e", "exit"], "", [], /heap_min_slots=100000/, "[ruby-core:39795]") end end -- cgit v1.2.3