mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/dl/test_win32.rb (Win32API): enclosed by DL::TestWin32.
[ruby-core:22827] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22981 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
f86cd0d4c2
commit
1b6808913a
2 changed files with 8 additions and 3 deletions
|
@ -1,3 +1,8 @@
|
|||
Mon Mar 16 17:15:16 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* test/dl/test_win32.rb (Win32API): enclosed by DL::TestWin32.
|
||||
[ruby-core:22827]
|
||||
|
||||
Mon Mar 16 16:37:22 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* ext/tk/tcltklib.c (eventloop_sleep, lib_eventloop_core),
|
||||
|
|
|
@ -2,6 +2,7 @@ require 'test_base'
|
|||
require 'dl/import'
|
||||
require 'dl/types'
|
||||
|
||||
class DL::TestWin32 < DL::TestBase
|
||||
module Win32API
|
||||
extend DL::Importer
|
||||
|
||||
|
@ -36,8 +37,7 @@ module Win32API
|
|||
rescue DL::DLError
|
||||
end
|
||||
|
||||
module DL
|
||||
class TestWin32 < TestBase
|
||||
if defined?(Win32API::OSVERSIONINFO)
|
||||
def test_version()
|
||||
platform = Win32API.get_version_ex().dwPlatformId
|
||||
case ENV['OS']
|
||||
|
@ -51,4 +51,4 @@ class TestWin32 < TestBase
|
|||
assert_equal(expect, platform)
|
||||
end
|
||||
end
|
||||
end if defined?(Win32API::OSVERSIONINFO)
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue