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

ruby-changes:36516

From: nobu <ko1@a...>
Date: Thu, 27 Nov 2014 12:42:58 +0900 (JST)
Subject: [ruby-changes:36516] nobu:r48598 (trunk): envutil.rb: skip if load failed

nobu	2014-11-27 12:42:32 +0900 (Thu, 27 Nov 2014)

  New Revision: 48598

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

  Log:
    envutil.rb: skip if load failed
    
    * test/lib/envutil.rb (assert_no_memory_leak): skip when failed to
      load fiddle.

  Modified files:
    trunk/test/lib/envutil.rb
Index: test/lib/envutil.rb
===================================================================
--- test/lib/envutil.rb	(revision 48597)
+++ test/lib/envutil.rb	(revision 48598)
@@ -466,6 +466,8 @@ eom https://github.com/ruby/ruby/blob/trunk/test/lib/envutil.rb#L466
           next unless a > 0 and b > 0
           assert_operator(a.fdiv(b), :<, limit, message(message) {"#{n}: #{b} => #{a}"})
         end
+      rescue LoadError
+        skip
       end
 
       def assert_is_minus_zero(f)

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

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