From 8cffe06a04e2107c765a32a0b8b8bbe2b02f2ef0 Mon Sep 17 00:00:00 2001 From: nobu Date: Thu, 5 Dec 2013 13:30:39 +0000 Subject: [PATCH] test_objspace.rb: show error * test/objspace/test_objspace.rb (test_dump_all): show error output if nothing dumped. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44020 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/objspace/test_objspace.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/test/objspace/test_objspace.rb b/test/objspace/test_objspace.rb index f8d1c405e8..38fd9bd46f 100644 --- a/test/objspace/test_objspace.rb +++ b/test/objspace/test_objspace.rb @@ -254,6 +254,7 @@ class TestObjSpace < Test::Unit::TestCase puts dump_my_heap_please end; skip if /is not supported/ =~ error + skip error unless output assert_match(entry, File.readlines(output).grep(/TEST STRING/).join("\n")) File.unlink(output) end