From 304885cdffeba202de0e51425f76d92945a3b2a5 Mon Sep 17 00:00:00 2001 From: nobu Date: Thu, 29 Nov 2012 02:58:34 +0000 Subject: [PATCH] test/dl: no warnings * test/dl/test_base.rb, test/dl/test_c_struct_entry.rb: deprecation warnings make no sense here. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37966 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/dl/test_base.rb | 3 ++- test/dl/test_c_struct_entry.rb | 3 ++- test/ruby/envutil.rb | 1 + 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/test/dl/test_base.rb b/test/dl/test_base.rb index 0642f0ed89..90d44e6c9d 100644 --- a/test/dl/test_base.rb +++ b/test/dl/test_base.rb @@ -1,6 +1,7 @@ +# -*- coding: us-ascii -*- require 'test/unit' -require 'dl' require_relative '../ruby/envutil' +EnvUtil.suppress_warning {require 'dl'} libc_so = libm_so = nil diff --git a/test/dl/test_c_struct_entry.rb b/test/dl/test_c_struct_entry.rb index a7a0e34644..b2f1f94419 100644 --- a/test/dl/test_c_struct_entry.rb +++ b/test/dl/test_c_struct_entry.rb @@ -1,6 +1,7 @@ +# -*- coding: us-ascii -*- require_relative 'test_base' -require 'dl/struct' +EnvUtil.suppress_warning {require 'dl/struct'} module DL class TestCStructEntity < TestBase diff --git a/test/ruby/envutil.rb b/test/ruby/envutil.rb index 8b57c28e08..73fde74881 100644 --- a/test/ruby/envutil.rb +++ b/test/ruby/envutil.rb @@ -1,3 +1,4 @@ +# -*- coding: us-ascii -*- require "open3" require "timeout"