aboutsummaryrefslogtreecommitdiffstats
path: root/test/fiddle/test_handle.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/fiddle/test_handle.rb')
-rw-r--r--test/fiddle/test_handle.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/fiddle/test_handle.rb b/test/fiddle/test_handle.rb
index fecf366..6ac957a 100644
--- a/test/fiddle/test_handle.rb
+++ b/test/fiddle/test_handle.rb
@@ -182,5 +182,12 @@ module Fiddle
def test_no_memory_leak
assert_no_memory_leak(%w[-W0 -rfiddle.so], '', '100_000.times {Fiddle::Handle.allocate}; GC.start', rss: true)
end
+
+ if /cygwin|mingw|mswin/ =~ RUBY_PLATFORM
+ def test_fallback_to_ansi
+ k = Fiddle::Handle.new("kernel32.dll")
+ refute_nil(k["GetFileAttributes"])
+ end
+ end
end
end if defined?(Fiddle)