Bug #7403

TestWIN32OLE_TYPE test failure on Windows 8

Added by Heesob Park over 1 year ago. Updated over 1 year ago.

[ruby-core:49580]
Status:Closed
Priority:Normal
Assignee:Masaki Suketa
Category:-
Target version:-
ruby -v:ruby 2.0.0dev (2012-11-17 trunk 37691) [i386-mswin32_110] Backport:

Description

While I doing test-all, I noticed a failing test on Windows 8.

testimplementedoletypes(TestWIN32OLETYPE) [C:/work/snapshot/test/win32ole/testwin32oletype.rb:176]:
Expected /IShellDispatch5{0,1}$/ to match "IShellDispatch6".

Here is irb outputs for inspection:
C:>irb
irb(main):001:0> require 'win32ole'
=> true
irb(main):002:0> @oletype = WIN32OLETYPE.new("Microsoft Shell Controls And Automation", "Shell")
=> #
irb(main):003:0> oletypes = @oletype.implementedoletypes
=> [#]

I think the line #176
assertmatch(/IShellDispatch5{0,1}$/, oletypes[0].name)
should be modifed something like
assertmatch(/IShellDispatch\d{0,1}$/, oletypes[0].name)

Associated revisions

Revision 37758
Added by Masaki Suketa over 1 year ago

  • test/win32ole/testwin32oletype.rb (testimplementedole_types): IShellDispatch6 bundled in Windows 8. Thanks to phasis68 (Heesob Park). [Bug #7403]

History

#1 Updated by Usaku NAKAMURA over 1 year ago

  • Status changed from Open to Assigned
  • Assignee set to Masaki Suketa

#2 Updated by Masaki Suketa over 1 year ago

  • Status changed from Assigned to Closed
  • % Done changed from 0 to 100

This issue was solved with changeset r37758.
Heesob, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.


  • test/win32ole/testwin32oletype.rb (testimplementedole_types): IShellDispatch6 bundled in Windows 8. Thanks to phasis68 (Heesob Park). [Bug #7403]

Also available in: Atom PDF