Bug #1264 ยป test_win32.patch
test/dl/test_win32.rb (working copy) | ||
---|---|---|
require 'dl/import'
|
||
require 'dl/types'
|
||
module Win32API
|
||
module Win32APITest
|
||
extend DL::Importer
|
||
dlload "kernel32.dll"
|
||
... | ... | |
module DL
|
||
class TestWin32 < TestBase
|
||
def test_version()
|
||
platform = Win32API.get_version_ex().dwPlatformId
|
||
platform = Win32APITest.get_version_ex().dwPlatformId
|
||
case ENV['OS']
|
||
when 'Windows_NT'
|
||
expect = 2
|