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

ruby-changes:44547

From: shugo <ko1@a...>
Date: Sun, 6 Nov 2016 10:20:48 +0900 (JST)
Subject: [ruby-changes:44547] shugo:r56620 (trunk): Use Signal.signame instead of Signal.list.

shugo	2016-11-06 10:20:44 +0900 (Sun, 06 Nov 2016)

  New Revision: 56620

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

  Log:
    Use Signal.signame instead of Signal.list.

  Modified files:
    trunk/test/ruby/test_optimization.rb
Index: test/ruby/test_optimization.rb
===================================================================
--- test/ruby/test_optimization.rb	(revision 56619)
+++ test/ruby/test_optimization.rb	(revision 56620)
@@ -342,7 +342,7 @@ EOS https://github.com/ruby/ruby/blob/trunk/test/ruby/test_optimization.rb#L342
       *, stat = Process.wait2(pid)
       [stat, err_p.read]
     }
-    assert_equal(Signal.list["INT"], status.termsig)
+    assert_equal("INT", Signal.signame(status.termsig))
     assert_match(/Interrupt/, err, bug)
   end
 

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

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