diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-12-26 00:50:55 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-12-26 00:50:55 +0000 |
commit | e4b760128b523007ab31c5e8eb7ca22c2ce43df2 (patch) | |
tree | 7f509e46da0cc4d7d6f53763e78b6d9393d87920 /test/ruby | |
parent | 6da33430de3d4ff36799925c7425921a21bb56ff (diff) | |
download | ruby-e4b760128b523007ab31c5e8eb7ca22c2ce43df2.tar.gz |
Add opts to prevent generating core file
Given path is a dummy executable file to set as $0, not to read its content.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38618 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby')
-rw-r--r-- | test/ruby/test_rubyoptions.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/ruby/test_rubyoptions.rb b/test/ruby/test_rubyoptions.rb index 4247c398ec..950fdd6922 100644 --- a/test/ruby/test_rubyoptions.rb +++ b/test/ruby/test_rubyoptions.rb @@ -521,7 +521,8 @@ class TestRubyOptions < Test::Unit::TestCase 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 |