summaryrefslogtreecommitdiff
path: root/test/-ext-/test_abi.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/-ext-/test_abi.rb')
-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