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

test_handle.rb: remove skips

* test/fiddle/test_handle.rb (test_static_sym, test_DEFAULT):
  remove useless skips.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2015-01-05 15:15:41 +00:00
parent c9b3950d30
commit 3e8687a2ad

View file

@ -29,7 +29,6 @@ module Fiddle
end end
def test_static_sym def test_static_sym
skip "Fiddle::Handle.sym is not supported" if /mswin|mingw/ =~ RUBY_PLATFORM
begin begin
# Linux / Darwin / FreeBSD # Linux / Darwin / FreeBSD
refute_nil Fiddle::Handle.sym('dlopen') refute_nil Fiddle::Handle.sym('dlopen')
@ -40,7 +39,7 @@ module Fiddle
refute_nil Fiddle::Handle.sym('Init_objspace') refute_nil Fiddle::Handle.sym('Init_objspace')
assert_equal Fiddle::Handle.sym('Init_objspace'), Fiddle::Handle['Init_objspace'] assert_equal Fiddle::Handle.sym('Init_objspace'), Fiddle::Handle['Init_objspace']
end end
end end unless /mswin|mingw/ =~ RUBY_PLATFORM
def test_sym_closed_handle def test_sym_closed_handle
handle = Fiddle::Handle.new(LIBC_SO) handle = Fiddle::Handle.new(LIBC_SO)
@ -172,7 +171,6 @@ module Fiddle
end unless /mswin|mingw/ =~ RUBY_PLATFORM end unless /mswin|mingw/ =~ RUBY_PLATFORM
def test_DEFAULT def test_DEFAULT
skip "Handle::DEFAULT is not supported" if /mswin|mingw/ =~ RUBY_PLATFORM
handle = Handle::DEFAULT handle = Handle::DEFAULT
refute_nil handle['malloc'] refute_nil handle['malloc']
end unless /mswin|mingw/ =~ RUBY_PLATFORM end unless /mswin|mingw/ =~ RUBY_PLATFORM