summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-03-16 08:15:10 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-03-16 08:15:10 +0000
commit1b6808913adfcffc03e8096e26e6e41e11f74004 (patch)
tree1fb6f7a1092b455951057ea2f6e6e6609a6bb5d0
parentf86cd0d4c20b3422c7715f7d79dbb47df2eb8e52 (diff)
* 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
-rw-r--r--ChangeLog5
-rw-r--r--test/dl/test_win32.rb6
2 files changed, 8 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index f5e08e3cf9..280bd35fa1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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),
diff --git a/test/dl/test_win32.rb b/test/dl/test_win32.rb
index b40e3690d8..32beb2703f 100644
--- a/test/dl/test_win32.rb
+++ b/test/dl/test_win32.rb
@@ -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