1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* test/ruby/memory_status.rb: require envutil before accessing EnvUtil

module.  reported by ko1 via twitter.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45486 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
usa 2014-03-31 08:24:30 +00:00
parent 97cef275a8
commit bf905503a0
2 changed files with 7 additions and 0 deletions

View file

@ -1,3 +1,8 @@
Mon Mar 31 17:23:50 2014 NAKAMURA Usaku <usa@ruby-lang.org>
* 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@80x24.org> Mon Mar 31 10:28:01 2014 Eric Wong <e@80x24.org>
* st.c (st_init_table_with_size): update comment * st.c (st_init_table_with_size): update comment

View file

@ -18,6 +18,7 @@ module Memory
begin begin
require 'fiddle/import' require 'fiddle/import'
rescue LoadError rescue LoadError
require_relative 'envutil'
EnvUtil.suppress_warning do EnvUtil.suppress_warning do
require 'dl/import' require 'dl/import'
end end
@ -25,6 +26,7 @@ module Memory
begin begin
require 'fiddle/types' require 'fiddle/types'
rescue LoadError rescue LoadError
require_relative 'envutil'
EnvUtil.suppress_warning do EnvUtil.suppress_warning do
require 'dl/types' require 'dl/types'
end end