merge revision(s) 32640: [Backport #6017]

* 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/branches/ruby_1_9_3@34601 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
naruse 2012-02-14 20:03:06 +00:00
parent 5f06da63d6
commit dbda1e9ea7
3 changed files with 16 additions and 1 deletions

View file

@ -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)