From 592e87e1f8cbe257f8f11d703c1315b033537b6c Mon Sep 17 00:00:00 2001 From: ko1 Date: Wed, 5 Dec 2012 07:56:07 +0000 Subject: [PATCH] * test/ruby/memory_status.rb: suppress warning. A patch from NAKAMURA Usaku. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38209 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ test/ruby/memory_status.rb | 10 ++++++++-- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 6c89792f24..a40c566912 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Wed Dec 5 16:54:28 2012 Koichi Sasada + + * test/ruby/memory_status.rb: suppress warning. + A patch from NAKAMURA Usaku. + Wed Dec 5 16:06:54 2012 Eric Hodel * lib/rdoc/parser/changelog.rb: Parse more ChangeLog file variations. diff --git a/test/ruby/memory_status.rb b/test/ruby/memory_status.rb index 03f49cb2ae..91a934837b 100644 --- a/test/ruby/memory_status.rb +++ b/test/ruby/memory_status.rb @@ -1,3 +1,5 @@ +require_relative "envutil" + module Memory keys = [] vals = [] @@ -18,12 +20,16 @@ module Memory begin require 'fiddle/import' rescue LoadError - require 'dl/import' + suppress_warning do + require 'dl/import' + end end begin require 'fiddle/types' rescue LoadError - require 'dl/types' + suppress_warning do + require 'dl/types' + end end module Win32