From fc8416abe7c64f2a6d905bfca7235acd6c86effd Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 30 Oct 2015 02:31:38 +0000 Subject: [PATCH] test_gc.rb: fix failure message * test/ruby/test_gc.rb (test_interrupt_in_finalizer): append signal info to stderr outputs in a proc, not to a proc. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52377 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_gc.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/ruby/test_gc.rb b/test/ruby/test_gc.rb index c90e7f45e8..1b8b2f3cbd 100644 --- a/test/ruby/test_gc.rb +++ b/test/ruby/test_gc.rb @@ -333,9 +333,9 @@ class TestGc < Test::Unit::TestCase def get_signal_info if RUBY_PLATFORM.include?('solaris') - `/usr/bin/psig #{$$}` + "\n"+`/usr/bin/psig #{$$}` elsif File.exist?('/proc/self/status') - IO.read('/proc/self/status') + "\n"+IO.read('/proc/self/status') else '' end @@ -364,7 +364,7 @@ class TestGc < Test::Unit::TestCase unless /mswin|mingw/ =~ RUBY_PLATFORM assert_equal("INT", Signal.signame(status.termsig), bug10595) end - assert_match(/Interrupt/, err.first, proc {err.join("\n")}+get_signal_info) + assert_match(/Interrupt/, err.first, proc {err.join("\n")+get_signal_info}) assert_empty(out) end