diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-11-30 11:22:49 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-11-30 11:22:49 +0000 |
commit | d0a4fecffcf3c74f14ba392f5785ea8f48d19683 (patch) | |
tree | 9732fe9c7f0a808249ce896e56afcf66c0871e5d /test/ruby | |
parent | 88201504aea9d0d62310c3cc931d6ed2127e58f4 (diff) | |
download | ruby-d0a4fecffcf3c74f14ba392f5785ea8f48d19683.tar.gz |
* test/ruby/memory_status.rb (Memory::Win32): sorry, ko1.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38057 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby')
-rw-r--r-- | test/ruby/memory_status.rb | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/test/ruby/memory_status.rb b/test/ruby/memory_status.rb index eaf962340a..e8fdad62b7 100644 --- a/test/ruby/memory_status.rb +++ b/test/ruby/memory_status.rb @@ -19,12 +19,15 @@ module Memory require 'fiddle/import' rescue LoadError require 'dl/import' - ::Fiddle = ::DL end require 'dl/types' module Win32 - extend Fiddle::Importer + begin + extend Fiddle::Importer + rescue NameError + extend DL::Importer + end dlload "kernel32.dll", "psapi.dll" include DL::Win32Types typealias "SIZE_T", "size_t" |