summaryrefslogtreecommitdiff
path: root/test/ruby
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-12-25 22:29:42 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-12-25 22:29:42 +0000
commit5a7347a7bd6a7ee31f3a6d8b90e38e8bf3ac8421 (patch)
tree7e7b53c175617ac713c7ccbcd7db3bdc082d2437 /test/ruby
parentc3992aa40cdd74d91f18f8633ee96ec48bb5ee64 (diff)
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
Diffstat (limited to 'test/ruby')
-rw-r--r--test/ruby/test_rubyoptions.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_rubyoptions.rb b/test/ruby/test_rubyoptions.rb
index 109d0aa541..4247c398ec 100644
--- a/test/ruby/test_rubyoptions.rb
+++ b/test/ruby/test_rubyoptions.rb
@@ -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