[前][次][番号順一覧][スレッド一覧]

ruby-changes:26105

From: ko1 <ko1@a...>
Date: Mon, 3 Dec 2012 20:06:37 +0900 (JST)
Subject: [ruby-changes:26105] ko1:r38162 (trunk): * test/ruby/test_objectspace.rb: skip RuntimeError

ko1	2012-12-03 20:06:21 +0900 (Mon, 03 Dec 2012)

  New Revision: 38162

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=38162

  Log:
    * test/ruby/test_objectspace.rb: skip RuntimeError
      which says a message "can't modify frozen File".
      Is that correct behavior?

  Modified files:
    trunk/ChangeLog
    trunk/test/ruby/test_objectspace.rb

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 38161)
+++ ChangeLog	(revision 38162)
@@ -1,3 +1,9 @@
+Mon Dec  3 20:03:38 2012  Koichi Sasada  <ko1@a...>
+
+	* 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@a...>
 
 	* vm_exec.c: vm_analysis_insn should be static.
Index: test/ruby/test_objectspace.rb
===================================================================
--- test/ruby/test_objectspace.rb	(revision 38161)
+++ test/ruby/test_objectspace.rb	(revision 38162)
@@ -75,7 +75,11 @@
     }
     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

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]