summaryrefslogtreecommitdiff
path: root/test/objspace/test_objspace.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/objspace/test_objspace.rb')
-rw-r--r--test/objspace/test_objspace.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/objspace/test_objspace.rb b/test/objspace/test_objspace.rb
index 983bd59e9a..602773b6cc 100644
--- a/test/objspace/test_objspace.rb
+++ b/test/objspace/test_objspace.rb
@@ -406,10 +406,10 @@ 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"))
+ assert_nil(error)
+ dump = File.readlines(output)
File.unlink(output)
+ assert_match(entry, dump.grep(/TEST STRING/).join("\n"))
end
if defined?(JSON)