summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2022-07-17 10:18:08 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2022-07-17 10:18:08 +0900
commitd010eba2f42f6a1ddae77d4822e5681523d561db (patch)
treefe1046245c58d132cde32961c195ff9bbb4d7358
parentefa557cb58e92374243a5a5b9efecd0abc3485bb (diff)
Fix tests for ABI incompatible binary error messags
-rw-r--r--test/-ext-/test_abi.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/-ext-/test_abi.rb b/test/-ext-/test_abi.rb
index ec2050ecad..59e70107a5 100644
--- a/test/-ext-/test_abi.rb
+++ b/test/-ext-/test_abi.rb
@@ -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