Forum: Ruby-core [ruby-trunk - Bug #7403][Open] TestWIN32OLE_TYPE test failure on Windows 8

Posted by Heesob Park (phasis)
on 2012-11-19 14:20
(Received via mailing list)
Issue #7403 has been reported by phasis68 (Heesob Park).

----------------------------------------
Bug #7403: TestWIN32OLE_TYPE test failure on Windows 8
https://bugs.ruby-lang.org/issues/7403

Author: phasis68 (Heesob Park)
Status: Open
Priority: Normal
Assignee:
Category:
Target version:
ruby -v: ruby 2.0.0dev (2012-11-17 trunk 37691) [i386-mswin32_110]


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

test_implemented_ole_types(TestWIN32OLE_TYPE) 
[C:/work/snapshot/test/win32ole/test_win32ole_type.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> @ole_type = WIN32OLE_TYPE.new("Microsoft Shell Controls 
And Automation", "Shell")
=> #<WIN32OLE_TYPE:Shell>
irb(main):003:0> ole_types = @ole_type.implemented_ole_types
=> [#<WIN32OLE_TYPE:IShellDispatch6>]

I think the line #176
assert_match(/^IShellDispatch5{0,1}$/, ole_types[0].name)
should be modifed something like
assert_match(/^IShellDispatch\d{0,1}$/, ole_types[0].name)
Posted by usa (Usaku NAKAMURA) (Guest)
on 2012-11-20 04:30
(Received via mailing list)
Issue #7403 has been updated by usa (Usaku NAKAMURA).

Status changed from Open to Assigned
Assignee set to suke (Masaki Suketa)


----------------------------------------
Bug #7403: TestWIN32OLE_TYPE test failure on Windows 8
https://bugs.ruby-lang.org/issues/7403#change-33150

Author: phasis68 (Heesob Park)
Status: Assigned
Priority: Normal
Assignee: suke (Masaki Suketa)
Category:
Target version:
ruby -v: ruby 2.0.0dev (2012-11-17 trunk 37691) [i386-mswin32_110]


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

test_implemented_ole_types(TestWIN32OLE_TYPE) 
[C:/work/snapshot/test/win32ole/test_win32ole_type.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> @ole_type = WIN32OLE_TYPE.new("Microsoft Shell Controls 
And Automation", "Shell")
=> #<WIN32OLE_TYPE:Shell>
irb(main):003:0> ole_types = @ole_type.implemented_ole_types
=> [#<WIN32OLE_TYPE:IShellDispatch6>]

I think the line #176
assert_match(/^IShellDispatch5{0,1}$/, ole_types[0].name)
should be modifed something like
assert_match(/^IShellDispatch\d{0,1}$/, ole_types[0].name)
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.