diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | test/ruby/test_objectspace.rb | 6 |
2 files changed, 11 insertions, 1 deletions
@@ -1,3 +1,9 @@ +Mon Dec 3 20:03:38 2012 Koichi Sasada <ko1@atdot.net> + + * test/ruby/test_objectspace.rb: skip RuntimeError + which says a message "can't modify frozen File". + Is that correct behavior? + Mon Dec 03 20:00:19 2012 Koichi Sasada <ko1@atdot.net> * vm_exec.c: vm_analysis_insn should be static. 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 |