summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-05-16 06:26:56 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-05-16 06:26:56 +0000
commit9a9d375f73e96deb966db526710e6f729e4fa6a4 (patch)
tree7e99ef3bfa6ab659a910735d487c0dcc427e1d21
parentc7d11ee1ba70525f279a7d2f3d69fd273801b624 (diff)
* 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
-rw-r--r--test/fiddle/test_handle.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/fiddle/test_handle.rb b/test/fiddle/test_handle.rb
index 6ac957a474a..edbfbb3e6eb 100644
--- a/test/fiddle/test_handle.rb
+++ b/test/fiddle/test_handle.rb
@@ -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