From f73aefc6278962cb6ae682113b64e31d22e7d16a Mon Sep 17 00:00:00 2001 From: usa Date: Tue, 3 Mar 2015 13:26:40 +0000 Subject: * test/lib/envutil.rb (EnvUtil.invoke_ruby): need to rescue because Signal.signame may raise exception. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49828 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ test/lib/envutil.rb | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index edaa768d88..6b09fe7ee9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Tue Mar 3 22:25:24 2015 NAKAMURA Usaku + + * test/lib/envutil.rb (EnvUtil.invoke_ruby): need to rescue because + Signal.signame may raise exception. + Tue Mar 3 16:57:39 2015 NAKAMURA Usaku * tool/redmine-backporter.rb: use 'b' instead of 's' for showing diff --git a/test/lib/envutil.rb b/test/lib/envutil.rb index 8d4dc707c7..fab8de9a95 100644 --- a/test/lib/envutil.rb +++ b/test/lib/envutil.rb @@ -70,7 +70,7 @@ module EnvUtil unless (!th_stdout || th_stdout.join(timeout)) && (!th_stderr || th_stderr.join(timeout)) signals = Array(signal).select do |sig| DEFAULT_SIGNALS[sig.to_s] or - DEFAULT_SIGNALS[Signal.signame(sig)] + DEFAULT_SIGNALS[Signal.signame(sig)] rescue false end signals |= [:KILL] case pgroup = opt[:pgroup] -- cgit v1.2.3