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

ruby-changes:52221

From: nobu <ko1@a...>
Date: Sat, 18 Aug 2018 11:44:39 +0900 (JST)
Subject: [ruby-changes:52221] nobu:r64429 (trunk): test/ruby/test_system.rb: suppress prompt and echo on Windows

nobu	2018-08-18 11:44:35 +0900 (Sat, 18 Aug 2018)

  New Revision: 64429

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=64429

  Log:
    test/ruby/test_system.rb: suppress prompt and echo on Windows

  Modified files:
    trunk/test/ruby/test_system.rb
Index: test/ruby/test_system.rb
===================================================================
--- test/ruby/test_system.rb	(revision 64428)
+++ test/ruby/test_system.rb	(revision 64429)
@@ -181,7 +181,9 @@ class TestSystem < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_system.rb#L181
     assert_raise_with_message(RuntimeError, /\ACommand failed with exit /) do
       system("'#{ruby}' -e abort", exception: true)
     end
+  end
 
+  def test_system_exception_nonascii
     Dir.mktmpdir("ruby_script_tmp") do |tmpdir|
       name = "\u{30c6 30b9 30c8}"
       tmpfilename = "#{tmpdir}/#{name}.cmd"
@@ -190,6 +192,7 @@ class TestSystem < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_system.rb#L192
         system(tmpfilename, exception: true)
       end
       open(tmpfilename, "w") {|f|
+        f.print "@" if /mingw|mswin/ =~ RUBY_PLATFORM
         f.puts "exit 127"
         f.chmod(0755)
       }

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

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