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

ruby-changes:33407

From: usa <ko1@a...>
Date: Mon, 31 Mar 2014 17:24:35 +0900 (JST)
Subject: [ruby-changes:33407] usa:r45486 (trunk): * test/ruby/memory_status.rb: require envutil before accessing EnvUtil

usa	2014-03-31 17:24:30 +0900 (Mon, 31 Mar 2014)

  New Revision: 45486

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

  Log:
    * test/ruby/memory_status.rb: require envutil before accessing EnvUtil
      module.  reported by ko1 via twitter.

  Modified files:
    trunk/ChangeLog
    trunk/test/ruby/memory_status.rb
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 45485)
+++ ChangeLog	(revision 45486)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Mon Mar 31 17:23:50 2014  NAKAMURA Usaku  <usa@r...>
+
+	* test/ruby/memory_status.rb: require envutil before accessing EnvUtil
+	  module.  reported by ko1 via twitter.
+
 Mon Mar 31 10:28:01 2014  Eric Wong  <e@8...>
 
 	* st.c (st_init_table_with_size): update comment
Index: test/ruby/memory_status.rb
===================================================================
--- test/ruby/memory_status.rb	(revision 45485)
+++ test/ruby/memory_status.rb	(revision 45486)
@@ -18,6 +18,7 @@ module Memory https://github.com/ruby/ruby/blob/trunk/test/ruby/memory_status.rb#L18
     begin
       require 'fiddle/import'
     rescue LoadError
+      require_relative 'envutil'
       EnvUtil.suppress_warning do
         require 'dl/import'
       end
@@ -25,6 +26,7 @@ module Memory https://github.com/ruby/ruby/blob/trunk/test/ruby/memory_status.rb#L26
     begin
       require 'fiddle/types'
     rescue LoadError
+      require_relative 'envutil'
       EnvUtil.suppress_warning do
         require 'dl/types'
       end

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

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