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

ruby-changes:27784

From: shirosaki <ko1@a...>
Date: Wed, 20 Mar 2013 16:49:25 +0900 (JST)
Subject: [ruby-changes:27784] shirosaki:r39836 (trunk): * test/ruby/test_signal.rb (test_hup_me): skip if HUP isn't supported.

shirosaki	2013-03-20 16:49:14 +0900 (Wed, 20 Mar 2013)

  New Revision: 39836

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

  Log:
    * test/ruby/test_signal.rb (test_hup_me): skip if HUP isn't supported.
      On Windows this test causes ArgumentError.

  Modified files:
    trunk/ChangeLog
    trunk/test/ruby/test_signal.rb

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 39835)
+++ ChangeLog	(revision 39836)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Wed Mar 20 16:40:48 2013  Hiroshi Shirosaki  <h.shirosaki@g...>
+
+	* test/ruby/test_signal.rb (test_hup_me): skip if HUP isn't supported.
+	  On Windows this test causes ArgumentError.
+
 Wed Mar 20 16:24:12 2013  Hiroshi Shirosaki  <h.shirosaki@g...>
 
 	* test/rubygems/test_gem_installer.rb (test_install_extension_flat):
Index: test/ruby/test_signal.rb
===================================================================
--- test/ruby/test_signal.rb	(revision 39835)
+++ test/ruby/test_signal.rb	(revision 39836)
@@ -275,6 +275,8 @@ EOS https://github.com/ruby/ruby/blob/trunk/test/ruby/test_signal.rb#L275
   end
 
   def test_hup_me
+    return unless Signal.list.has_key?('HUP')
+
     # [Bug #7951] [ruby-core:52864]
     # This is MRI specific spec. ruby has no guarantee
     # that signal will be deliverd synchronously.

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

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