From 774fcd25a2ff6765c17113feee99132e41a2176a Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 16 Mar 2009 08:15:10 +0000 Subject: * test/dl/test_win32.rb (Win32API): enclosed by DL::TestWin32. [ruby-core:22827] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22981 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/dl/test_win32.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test') diff --git a/test/dl/test_win32.rb b/test/dl/test_win32.rb index b40e3690d..32beb2703 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 -- cgit