summaryrefslogtreecommitdiff
path: root/test/dl
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/dl
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/dl')
-rw-r--r--test/dl/test_base.rb3
-rw-r--r--test/dl/test_c_struct_entry.rb3
2 files changed, 4 insertions, 2 deletions
diff --git a/test/dl/test_base.rb b/test/dl/test_base.rb
index 0642f0e..90d44e6 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 a7a0e34..b2f1f94 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