ruby-changes:26567
From: naruse <ko1@a...>
Date: Wed, 26 Dec 2012 09:51:08 +0900 (JST)
Subject: [ruby-changes:26567] naruse:r38618 (trunk): Add opts to prevent generating core file
naruse 2012-12-26 09:50:55 +0900 (Wed, 26 Dec 2012) New Revision: 38618 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=38618 Log: Add opts to prevent generating core file Given path is a dummy executable file to set as $0, not to read its content. Modified files: trunk/test/ruby/test_rubyoptions.rb Index: test/ruby/test_rubyoptions.rb =================================================================== --- test/ruby/test_rubyoptions.rb (revision 38617) +++ test/ruby/test_rubyoptions.rb (revision 38618) @@ -521,7 +521,8 @@ class TestRubyOptions < Test::Unit::Test https://github.com/ruby/ruby/blob/trunk/test/ruby/test_rubyoptions.rb#L521 t = Tempfile.new(["test_ruby_test_bug7597", ".rb"]) t.write "f" * 100 t.flush - assert_in_out_err(["-e", "$0=ARGF.read; Process.kill :SEGV, $$"], t.path, [], expected_stderr, bug7597) + assert_in_out_err(["-e", "$0=ARGV[0]; Process.kill :SEGV, $$", t.path], + "", [], expected_stderr, bug7597, opts) t.close end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/