mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/win32ole/test_win32ole_variant.rb: use skip method to skip the test.
* test/win32ole/test_win32ole_variant_outarg.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32756 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
5edd7f07d8
commit
3761e00f87
3 changed files with 15 additions and 15 deletions
|
@ -4,11 +4,6 @@ rescue LoadError
|
|||
end
|
||||
require "test/unit"
|
||||
|
||||
$MSGS = []
|
||||
def add_skip_message(msg)
|
||||
$MSGS.push msg
|
||||
end
|
||||
|
||||
if defined?(WIN32OLE_VARIANT)
|
||||
|
||||
class TestWIN32OLE_VARIANT < Test::Unit::TestCase
|
||||
|
@ -260,7 +255,7 @@ if defined?(WIN32OLE_VARIANT)
|
|||
assert_equal(-123456789012345, obj.value)
|
||||
assert_equal(WIN32OLE::VARIANT::VT_I8|WIN32OLE::VARIANT::VT_BYREF, obj.vartype)
|
||||
else
|
||||
STDERR.puts("\n#{__FILE__}:#{__LINE__}:#{self.class.name}.test_s_new_with_i8_byref is skipped")
|
||||
skip("WIN32OLE::VARIANT::VT_I8 is not available")
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -272,7 +267,7 @@ if defined?(WIN32OLE_VARIANT)
|
|||
assert_equal(123456789012345, obj.value)
|
||||
assert_equal(WIN32OLE::VARIANT::VT_UI8|WIN32OLE::VARIANT::VT_BYREF, obj.vartype)
|
||||
else
|
||||
STDERR.puts("\n#{__FILE__}:#{__LINE__}:#{self.class.name}.test_s_new_with_ui8_byref is skipped.")
|
||||
skip("WIN32OLE::VARIANT::VT_UI8 is not available")
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -398,7 +393,7 @@ if defined?(WIN32OLE_VARIANT)
|
|||
begin
|
||||
WIN32OLE.locale = 0x0411 # set locale Japanese
|
||||
rescue WIN32OLERuntimeError
|
||||
STDERR.puts("\n#{__FILE__}:#{__LINE__}:#{self.class.name}.test_conversion_str2cy is skipped(Japanese locale is not installed)")
|
||||
skip("Japanese locale is not installed")
|
||||
end
|
||||
if WIN32OLE.locale == 0x0411
|
||||
obj = WIN32OLE_VARIANT.new("\\10,000", WIN32OLE::VARIANT::VT_CY)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue