diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-08-05 17:25:35 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-08-05 17:25:35 +0000 |
commit | d4bac78163f2ed33737b1ec97de9ae10e52b812d (patch) | |
tree | 5675f800cf21be22a937deb1c1c1ef2bd6fc94db /test/ruby | |
parent | 8a3ec4824f9ad802d29a5631fd2e9b10a6cf7c02 (diff) | |
download | ruby-d4bac78163f2ed33737b1ec97de9ae10e52b812d.tar.gz |
node.c: NODE_ALLOCA for ALLOCV
* node.c (rb_alloc_tmp_buffer): use NODE_ALLOCA to mark locations
like as builtin alloca. [ruby-core:70251] [Bug #11418]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51492 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby')
-rw-r--r-- | test/ruby/test_process.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/ruby/test_process.rb b/test/ruby/test_process.rb index 68dab2b8ad..2a5a586353 100644 --- a/test/ruby/test_process.rb +++ b/test/ruby/test_process.rb @@ -2172,4 +2172,14 @@ EOS w.close if w r.close if r end if defined?(fork) + + def test_many_args + bug11418 = '[ruby-core:70251] [Bug #11418]' + assert_in_out_err([], <<-"end;", ["x"]*256, [], bug11418) + bin = "#{EnvUtil.rubybin}" + args = Array.new(256) {"x"} + GC.stress = true + system(bin, "--disable=gems", "-w", "-e", "puts ARGV", *args) + end; + end end |