Skip to content

Commit

Permalink
* test/dl/test_win32.rb (Win32API): enclosed by DL::TestWin32.
Browse files Browse the repository at this point in the history
  [ruby-core:22827]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22981 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
nobu committed Mar 16, 2009
1 parent f86cd0d commit 1b68089
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
Mon Mar 16 17:15:16 2009 Nobuyoshi Nakada <[email protected]>

* test/dl/test_win32.rb (Win32API): enclosed by DL::TestWin32.
[ruby-core:22827]

Mon Mar 16 16:37:22 2009 Nobuyoshi Nakada <[email protected]>

* ext/tk/tcltklib.c (eventloop_sleep, lib_eventloop_core),
Expand Down
6 changes: 3 additions & 3 deletions test/dl/test_win32.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
require 'dl/import'
require 'dl/types'

class DL::TestWin32 < DL::TestBase
module Win32API
extend DL::Importer

Expand Down Expand Up @@ -36,8 +37,7 @@ def get_version_ex()
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']
Expand All @@ -51,4 +51,4 @@ def test_version()
assert_equal(expect, platform)
end
end
end if defined?(Win32API::OSVERSIONINFO)
end

0 comments on commit 1b68089

Please sign in to comment.