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

ruby-changes:47532

From: nobu <ko1@a...>
Date: Wed, 23 Aug 2017 12:14:09 +0900 (JST)
Subject: [ruby-changes:47532] nobu:r59648 (trunk): skip unless finalizers run

nobu	2017-08-23 12:14:05 +0900 (Wed, 23 Aug 2017)

  New Revision: 59648

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=59648

  Log:
    skip unless finalizers run

  Modified files:
    trunk/test/ruby/test_gc.rb
Index: test/ruby/test_gc.rb
===================================================================
--- test/ruby/test_gc.rb	(revision 59647)
+++ test/ruby/test_gc.rb	(revision 59648)
@@ -398,7 +398,7 @@ class TestGc < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_gc.rb#L398
     end
   end
 
-  def test_exception_in_finalizer
+  def test_exception_in_finalizer_procs
     result = []
     c1 = proc do
       result << :c1
@@ -417,6 +417,7 @@ class TestGc < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_gc.rb#L417
       }
     }
     GC.start
+    skip "finalizers did not get run" if result.empty?
     assert_equal([:c1, :c2], result)
   end
 end

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

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