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

ruby-changes:33816

From: nobu <ko1@a...>
Date: Sat, 10 May 2014 10:00:42 +0900 (JST)
Subject: [ruby-changes:33816] nobu:r45897 (trunk): test_signal.rb: test iff SIGQUIT is supported

nobu	2014-05-10 10:00:37 +0900 (Sat, 10 May 2014)

  New Revision: 45897

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

  Log:
    test_signal.rb: test iff SIGQUIT is supported
    
    * test/ruby/test_signal.rb (test_trap_system_default): test only
      if SIGQUIT is supported, which is platform dependent.

  Modified files:
    trunk/test/ruby/test_signal.rb
Index: test/ruby/test_signal.rb
===================================================================
--- test/ruby/test_signal.rb	(revision 45896)
+++ test/ruby/test_signal.rb	(revision 45897)
@@ -180,7 +180,7 @@ class TestSignal < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_signal.rb#L180
       trap(:QUIT, "SYSTEM_DEFAULT")
       assert_equal("SYSTEM_DEFAULT", trap(:QUIT, "DEFAULT"))
     End
-  end
+  end if Signal.list.key?('QUIT')
 
   def test_signal_requiring
     t = Tempfile.new(%w"require_ensure_test .rb")

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

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