1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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
This commit is contained in:
nobu 2013-12-05 13:30:39 +00:00
parent 1a1c0aeb50
commit 8cffe06a04

View file

@ -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