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

ruby-changes:40710

From: naruse <ko1@a...>
Date: Sun, 29 Nov 2015 20:46:15 +0900 (JST)
Subject: [ruby-changes:40710] naruse:r52789 (trunk): SIGTERM should be also captured

naruse	2015-11-29 20:45:59 +0900 (Sun, 29 Nov 2015)

  New Revision: 52789

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

  Log:
    SIGTERM should be also captured
    
    because it will terminate the whole test process when it is
    re-raised from this assertion.

  Modified files:
    trunk/test/lib/envutil.rb
Index: test/lib/envutil.rb
===================================================================
--- test/lib/envutil.rb	(revision 52788)
+++ test/lib/envutil.rb	(revision 52789)
@@ -375,7 +375,7 @@ module Test https://github.com/ruby/ruby/blob/trunk/test/lib/envutil.rb#L375
         assert(status.success?, "#{message} (#{status.inspect})")
       end
 
-      ABORT_SIGNALS = Signal.list.values_at(*%w"ILL ABRT BUS SEGV")
+      ABORT_SIGNALS = Signal.list.values_at(*%w"ILL ABRT BUS SEGV TERM")
 
       def assert_separately(args, file = nil, line = nil, src, ignore_stderr: nil, **opt)
         unless file and line

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

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