diff options
author | k0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-10-28 01:19:30 +0000 |
---|---|---|
committer | k0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-10-28 01:19:30 +0000 |
commit | 091c04df537425d9e73b8b2f079522a05df93119 (patch) | |
tree | fce06901001497f55675a3f8b8336c6b9f7c1a3f | |
parent | b343a583af1361d1225ab6b05dcf38aecc290a2d (diff) | |
download | ruby-091c04df537425d9e73b8b2f079522a05df93119.tar.gz |
revert r65401
Because it does break Linux CI like:
https://gist.github.com/ko1/2c561f9185492f339cf7a763ea219e79
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65402 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | spec/ruby/library/win32ole/fixtures/classes.rb | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/spec/ruby/library/win32ole/fixtures/classes.rb b/spec/ruby/library/win32ole/fixtures/classes.rb index 139aa1225c..407af553c2 100644 --- a/spec/ruby/library/win32ole/fixtures/classes.rb +++ b/spec/ruby/library/win32ole/fixtures/classes.rb @@ -1,7 +1,14 @@ -require 'win32ole' +begin + require 'win32ole' +rescue LoadError +end module WIN32OLESpecs - MSXML_AVAILABLE = !!WIN32OLE_TYPELIB.typelibs.find { |t| t.name.start_with?('Microsoft XML') } + begin + MSXML_AVAILABLE = !!WIN32OLE_TYPELIB.typelibs.find { |t| t.name.start_with?('Microsoft XML') } + rescue + MSXML_AVAILABLE = false + end def self.new_ole(name) tries = 0 |