mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/dl/test_handle.rb: skip some tests on mswin/mingw.
because RTLD_DEFAULT and RTLD_NEXT don't work well on windows. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26989 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
4b6a7a46e8
commit
b7ed43e941
1 changed files with 3 additions and 0 deletions
|
@ -22,6 +22,7 @@ module DL
|
|||
end
|
||||
|
||||
def test_static_sym
|
||||
skip "DL::Handle.sym is not supported" if /mswin|mingw/ =~ RUBY_PLATFORM
|
||||
assert_not_nil DL::Handle.sym('dlopen')
|
||||
assert_equal DL::Handle.sym('dlopen'), DL::Handle['dlopen']
|
||||
end
|
||||
|
@ -124,6 +125,7 @@ module DL
|
|||
end
|
||||
|
||||
def test_NEXT
|
||||
skip "DL::Handle::NEXT is not supported" if /mswin|mingw/ =~ RUBY_PLATFORM
|
||||
begin
|
||||
# Linux / Darwin
|
||||
#
|
||||
|
@ -156,6 +158,7 @@ module DL
|
|||
end
|
||||
|
||||
def test_DEFAULT
|
||||
skip "DL::Handle::DEFAULT is not supported" if /mswin|mingw/ =~ RUBY_PLATFORM
|
||||
handle = DL::Handle::DEFAULT
|
||||
assert_not_nil handle['malloc']
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue