aboutsummaryrefslogtreecommitdiffstats
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
commit15b759cd285a3768e32d916dc560ba0e3aa6fd35 (patch)
tree7e99ef3bfa6ab659a910735d487c0dcc427e1d21
parent8bb6ef73d9bd0b20fb40b2487e02c29383d710af (diff)
downloadruby-15b759cd285a3768e32d916dc560ba0e3aa6fd35.tar.gz
* 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 6ac957a..edbfbb3 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