зеркало из https://github.com/github/ruby.git
Fix tests for ABI incompatible binary error messags
This commit is contained in:
Родитель
efa557cb58
Коммит
d010eba2f4
|
@ -6,7 +6,8 @@ class TestABI < Test::Unit::TestCase
|
|||
|
||||
assert_separately [], <<~RUBY
|
||||
err = assert_raise(LoadError) { require "-test-/abi" }
|
||||
assert_match(/ABI version of binary is incompatible with this Ruby/, err.message)
|
||||
assert_match(/incompatible ABI version/, err.message)
|
||||
assert_include err.message, "/-test-/abi."
|
||||
RUBY
|
||||
end
|
||||
|
||||
|
@ -23,7 +24,8 @@ class TestABI < Test::Unit::TestCase
|
|||
|
||||
assert_separately [{ "RUBY_ABI_CHECK" => "1" }], <<~RUBY
|
||||
err = assert_raise(LoadError) { require "-test-/abi" }
|
||||
assert_match(/ABI version of binary is incompatible with this Ruby/, err.message)
|
||||
assert_match(/incompatible ABI version/, err.message)
|
||||
assert_include err.message, "/-test-/abi."
|
||||
RUBY
|
||||
end
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче