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

memory_status.rb: EnvUtil

* test/ruby/memory_status.rb (Memory): suppress_warning is in EnvUtil.
  [ruby-core:50599] [Bug #7523]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38233 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2012-12-06 08:25:45 +00:00
parent 9b76b5057c
commit d3a2aa4004

View file

@ -20,14 +20,14 @@ module Memory
begin
require 'fiddle/import'
rescue LoadError
suppress_warning do
EnvUtil.suppress_warning do
require 'dl/import'
end
end
begin
require 'fiddle/types'
rescue LoadError
suppress_warning do
EnvUtil.suppress_warning do
require 'dl/types'
end
end