summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-11-29 02:58:34 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-11-29 02:58:34 +0000
commit304885cdffeba202de0e51425f76d92945a3b2a5 (patch)
tree41f95417f605eb61b147b04a5b6ba84c205077bb /test
parentecaba0f21ffd4d3ef5511ec117865af634554dea (diff)
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
Diffstat (limited to 'test')
-rw-r--r--test/dl/test_base.rb3
-rw-r--r--test/dl/test_c_struct_entry.rb3
-rw-r--r--test/ruby/envutil.rb1
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"