ruby-changes:42942
From: nobu <ko1@a...>
Date: Mon, 16 May 2016 15:27:01 +0900 (JST)
Subject: [ruby-changes:42942] nobu:r55016 (trunk): * test_handle.rb: refine test_fallback_to_ansi
nobu 2016-05-16 15:26:56 +0900 (Mon, 16 May 2016) New Revision: 55016 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=55016 Log: * 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] Modified files: trunk/test/fiddle/test_handle.rb Index: test/fiddle/test_handle.rb =================================================================== --- test/fiddle/test_handle.rb (revision 55015) +++ test/fiddle/test_handle.rb (revision 55016) @@ -186,7 +186,8 @@ module Fiddle https://github.com/ruby/ruby/blob/trunk/test/fiddle/test_handle.rb#L186 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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/