[前][次][番号順一覧][スレッド一覧]

ruby-changes:26563

From: nobu <ko1@a...>
Date: Wed, 26 Dec 2012 07:30:55 +0900 (JST)
Subject: [ruby-changes:26563] nobu:r38614 (trunk): test_rubyoptions.rb: ARGF

nobu	2012-12-26 07:29:42 +0900 (Wed, 26 Dec 2012)

  New Revision: 38614

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=38614

  Log:
    test_rubyoptions.rb: ARGF
    
    * test/ruby/test_rubyoptions.rb (TestRubyOptions#test_segv_test): to
      read ARGV files is ARGF.

  Modified files:
    trunk/test/ruby/test_rubyoptions.rb

Index: test/ruby/test_rubyoptions.rb
===================================================================
--- test/ruby/test_rubyoptions.rb	(revision 38613)
+++ test/ruby/test_rubyoptions.rb	(revision 38614)
@@ -521,7 +521,7 @@ 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=$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
 

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]