mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
test_rubyoptions.rb: ARGF
* test/ruby/test_rubyoptions.rb (TestRubyOptions#test_segv_test): to read ARGV files is ARGF. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38614 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
c3992aa40c
commit
5a7347a7bd
1 changed files with 1 additions and 1 deletions
|
@ -521,7 +521,7 @@ 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=$stdin.read; Process.kill :SEGV, $$"], t.path, [], expected_stderr, bug7597)
|
||||
assert_in_out_err(["-e", "$0=ARGF.read; Process.kill :SEGV, $$"], t.path, [], expected_stderr, bug7597)
|
||||
t.close
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue