Actions
Bug #6782
closedFix test_offset_vtbl(TestWIN32OLE_METHOD) failure with mingw x64
Description
=begin
x64-mingw32 ruby has a failure in test_win32ole_method.rb.
[1752/1812] TestWIN32OLE_METHOD#test_offset_vtbl = 0.03 s
12) Failure:
test_offset_vtbl(TestWIN32OLE_METHOD) [c:/Users/hiroshi/work/ruby/test/win32ole/
test_win32ole_method.rb:117]:
<24> expected but was
<48>.
64bit condition seems not proper with mingw.
$ ruby -e "p RUBY_PLATFORM"
"x64-mingw32"
Here is the patch to fix this.
diff --git a/test/win32ole/test_win32ole_method.rb b/test/win32ole/test_win32ole_method.rb
index e4f38ea..2c24004 100644
--- a/test/win32ole/test_win32ole_method.rb
+++ b/test/win32ole/test_win32ole_method.rb
@@ -109,7 +109,7 @@ if defined?(WIN32OLE_METHOD)
end
def is_ruby64?
-
/mswin64|mingw64/ =~ RUBY_PLATFORM
-
/mswin64|x64-mingw/ =~ RUBY_PLATFORM
end
def test_offset_vtbl
=end
Actions
Like0
Like0