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

ruby-changes:50050

From: nobu <ko1@a...>
Date: Sat, 3 Feb 2018 01:44:27 +0900 (JST)
Subject: [ruby-changes:50050] nobu:r62168 (trunk): test_system.rb: tests without shell

nobu	2018-02-03 01:44:22 +0900 (Sat, 03 Feb 2018)

  New Revision: 62168

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

  Log:
    test_system.rb: tests without shell

  Modified files:
    trunk/test/ruby/test_system.rb
Index: test/ruby/test_system.rb
===================================================================
--- test/ruby/test_system.rb	(revision 62167)
+++ test/ruby/test_system.rb	(revision 62168)
@@ -167,12 +167,18 @@ class TestSystem < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_system.rb#L167
       system('feature_14235', exception: false)
     end
     assert_nothing_raised do
+      system(ruby, "-e", "abort", exception: false)
+    end
+    assert_nothing_raised do
       system("'#{ruby}' -e abort", exception: false)
     end
     assert_raise(Errno::ENOENT) do
       system('feature_14235', exception: true)
     end
     assert_raise_with_message(RuntimeError, /\ACommand failed with exit /) do
+      system(ruby, "-e", "abort", exception: true)
+    end
+    assert_raise_with_message(RuntimeError, /\ACommand failed with exit /) do
       system("'#{ruby}' -e abort", exception: true)
     end
   end

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

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