summaryrefslogtreecommitdiff
path: root/test/win32ole
diff options
context:
space:
mode:
authorsuke <suke@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-07-23 10:13:53 +0000
committersuke <suke@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-07-23 10:13:53 +0000
commite845e35fa31766f347abdb86bf69793d584537fc (patch)
treeefcff2f1879466b3fefebfa0eb324408c8cb4aa4 /test/win32ole
parent65658ea0d4f17b90bb09003405a7560d6df0b58e (diff)
* test/win32ole/test_err_in_callback.rb (test_err_in_callback):
skip test if ADODB.connection is not available. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32640 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/win32ole')
-rw-r--r--test/win32ole/test_err_in_callback.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/win32ole/test_err_in_callback.rb b/test/win32ole/test_err_in_callback.rb
index 4fc97c2..11c29a8 100644
--- a/test/win32ole/test_err_in_callback.rb
+++ b/test/win32ole/test_err_in_callback.rb
@@ -23,7 +23,17 @@ if defined?(WIN32OLE)
end
end
+ def available_adodb?
+ begin
+ db = WIN32OLE.new('ADODB.Connection')
+ rescue WIN32OLERuntimeError
+ return false
+ end
+ return true
+ end
+
def test_err_in_callback
+ skip "'ADODB.Connection' is not available" unless available_adodb?
if @ruby
cmd = "#{@ruby} -v #{@iopt} #{@script} > test_err_in_callback.log 2>&1"
system(cmd)