summaryrefslogtreecommitdiff
path: root/test/dl
diff options
context:
space:
mode:
Diffstat (limited to 'test/dl')
-rw-r--r--test/dl/test_win32.rb6
1 files changed, 3 insertions, 3 deletions
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