1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[ruby/win32ole] Use omit instead of skip for test-unit

https://github.com/ruby/win32ole/commit/c0586b2f75
This commit is contained in:
Hiroshi SHIBATA 2022-01-11 21:19:26 +09:00
parent c02a9994ce
commit 5331615d54
7 changed files with 7 additions and 7 deletions

View file

@ -38,7 +38,7 @@ if defined?(WIN32OLE)
end
def test_err_in_callback
skip "'ADODB.Connection' is not available" unless available_adodb?
omit "'ADODB.Connection' is not available" unless available_adodb?
if @ruby
Dir.mktmpdir do |tmpdir|
logfile = File.join(tmpdir, "test_err_in_callback.log")

View file

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

View file

@ -10,7 +10,7 @@ if defined?(WIN32OLE_METHOD)
class TestWIN32OLE_METHOD_EVENT < Test::Unit::TestCase
unless AvailableOLE.sysmon_available?
def test_dummy_for_skip_message
skip 'System Monitor Control is not available'
omit 'System Monitor Control is not available'
end
else
def setup

View file

@ -23,7 +23,7 @@ if defined?(WIN32OLE_PARAM)
end
else
def test_dummy_for_skip_message
skip 'ActiveX Data Object Library and MS XML not found'
omit 'ActiveX Data Object Library and MS XML not found'
end
end
end

View file

@ -76,7 +76,7 @@ if defined?(WIN32OLE_RECORD)
class TestWIN32OLE_RECORD_BY_RBCOMTEST < Test::Unit::TestCase
unless rbcomtest_exist?
def test_dummy_for_skip_message
skip "#{PROGID_RBCOMTEST} for WIN32OLE_RECORD test is not installed"
omit "#{PROGID_RBCOMTEST} for WIN32OLE_RECORD test is not installed"
end
else
def setup

View file

@ -12,7 +12,7 @@ if defined?(WIN32OLE_TYPE)
class TestWIN32OLE_TYPE_EVENT < Test::Unit::TestCase
unless AvailableOLE.sysmon_available?
def test_dummy_for_skip_message
skip 'System Monitor Control is not available'
omit 'System Monitor Control is not available'
end
else

View file

@ -35,7 +35,7 @@ if defined?(WIN32OLE)
class TestWIN32OLE_WITH_WORD < Test::Unit::TestCase
unless word_installed?
def test_dummy_for_skip_message
skip "Microsoft Word is not installed"
omit "Microsoft Word is not installed"
end
else
def setup