From 41d77571ff4cb3e6ccf238cf63bfdc3c50fc1564 Mon Sep 17 00:00:00 2001 From: ko1 Date: Mon, 3 Dec 2012 11:06:21 +0000 Subject: * 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 --- test/ruby/test_objectspace.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'test/ruby/test_objectspace.rb') 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 -- cgit v1.2.3