mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Fix tests for ABI incompatible binary error messags
This commit is contained in:
parent
efa557cb58
commit
d010eba2f4
1 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue