1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* test_handle.rb: refine test_fallback_to_ansi

* test/fiddle/test_handle.rb (test_fallback_to_ansi): ensure that
  the fallback result equals to ANSI version.
  [ruby-core:75494] [Bug #12377]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55016 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2016-05-16 06:26:56 +00:00
parent c7d11ee1ba
commit 9a9d375f73

View file

@ -186,7 +186,8 @@ module Fiddle
if /cygwin|mingw|mswin/ =~ RUBY_PLATFORM
def test_fallback_to_ansi
k = Fiddle::Handle.new("kernel32.dll")
refute_nil(k["GetFileAttributes"])
ansi = k["GetFileAttributesA"]
assert_equal(ansi, k["GetFileAttributes"], "should fallback to ANSI version")
end
end
end