test_win32ole_event.rb: skip message

* test/win32ole/test_win32ole_event.rb (exec_notification_query_async):
  add skip message.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51726 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2015-08-30 07:15:52 +00:00
parent e7d578bf58
commit 822c3999d0

View File

@ -125,8 +125,9 @@ if defined?(WIN32OLE_EVENT)
def exec_notification_query_async
@wmi.ExecNotificationQueryAsync(@sws, @sql)
rescue => e
# No administrator privilege?
skip if /OLE error code:80041008 in SWbemServicesEx/ =~ e.message
if /OLE error code:80041008 in SWbemServicesEx/ =~ e.message
skip "No administrator privilege?"
end
raise
end
end