From 9a9d375f73e96deb966db526710e6f729e4fa6a4 Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 16 May 2016 06:26:56 +0000 Subject: [PATCH] * 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 --- test/fiddle/test_handle.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/fiddle/test_handle.rb b/test/fiddle/test_handle.rb index 6ac957a474..edbfbb3e6e 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