summaryrefslogtreecommitdiff
path: root/test/ruby
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-10-30 02:31:38 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-10-30 02:31:38 +0000
commitfc8416abe7c64f2a6d905bfca7235acd6c86effd (patch)
tree3ce0e69839495a80c6886d074832180e2c4a086e /test/ruby
parentbb87df3ef1403a964a6b7b0d838cc8f94ef9d9fc (diff)
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
Diffstat (limited to 'test/ruby')
-rw-r--r--test/ruby/test_gc.rb6
1 files 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