* 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
This commit is contained in:
parent
65658ea0d4
commit
e845e35fa3
@ -1,3 +1,8 @@
|
|||||||
|
Sat Jul 23 19:12:53 2011 Masaki Suketa <masaki.suketa@nifty.ne.jp>
|
||||||
|
|
||||||
|
* test/win32ole/test_err_in_callback.rb (test_err_in_callback):
|
||||||
|
skip test if ADODB.connection is not available.
|
||||||
|
|
||||||
Sat Jul 23 15:37:04 2011 NARUSE, Yui <naruse@ruby-lang.org>
|
Sat Jul 23 15:37:04 2011 NARUSE, Yui <naruse@ruby-lang.org>
|
||||||
|
|
||||||
* parse.y (rb_enc_symname_type): :$a!, @a! and so on are not
|
* parse.y (rb_enc_symname_type): :$a!, @a! and so on are not
|
||||||
|
@ -23,7 +23,17 @@ if defined?(WIN32OLE)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def available_adodb?
|
||||||
|
begin
|
||||||
|
db = WIN32OLE.new('ADODB.Connection')
|
||||||
|
rescue WIN32OLERuntimeError
|
||||||
|
return false
|
||||||
|
end
|
||||||
|
return true
|
||||||
|
end
|
||||||
|
|
||||||
def test_err_in_callback
|
def test_err_in_callback
|
||||||
|
skip "'ADODB.Connection' is not available" unless available_adodb?
|
||||||
if @ruby
|
if @ruby
|
||||||
cmd = "#{@ruby} -v #{@iopt} #{@script} > test_err_in_callback.log 2>&1"
|
cmd = "#{@ruby} -v #{@iopt} #{@script} > test_err_in_callback.log 2>&1"
|
||||||
system(cmd)
|
system(cmd)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user