summaryrefslogtreecommitdiff
path: root/test/ruby/test_objectspace.rb
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-12-03 11:06:21 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-12-03 11:06:21 +0000
commit41d77571ff4cb3e6ccf238cf63bfdc3c50fc1564 (patch)
treefca50e34cb900cf7042513c4989a9a40eca378fa /test/ruby/test_objectspace.rb
parent010b6e6a38540f5e2e98c9f6053ae0f550d09af6 (diff)
* test/ruby/test_objectspace.rb: skip RuntimeError
which says a message "can't modify frozen File". Is that correct behavior? git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38162 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_objectspace.rb')
-rw-r--r--test/ruby/test_objectspace.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/ruby/test_objectspace.rb b/test/ruby/test_objectspace.rb
index 921de84c0b..a5299212fc 100644
--- a/test/ruby/test_objectspace.rb
+++ b/test/ruby/test_objectspace.rb
@@ -75,7 +75,11 @@ End
}
GC.enable
arys.each{|ary|
- assert_equal(String, ary.inspect.class) # should not cause SEGV
+ begin
+ assert_equal(String, ary.inspect.class) # should not cause SEGV
+ rescue RuntimeError
+ # rescue "can't modify frozen File" error.
+ end
}
end
end