diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2022-07-17 10:18:08 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2022-07-17 10:18:08 +0900 |
commit | d010eba2f42f6a1ddae77d4822e5681523d561db (patch) | |
tree | fe1046245c58d132cde32961c195ff9bbb4d7358 /test/-ext- | |
parent | efa557cb58e92374243a5a5b9efecd0abc3485bb (diff) | |
download | ruby-d010eba2f42f6a1ddae77d4822e5681523d561db.tar.gz |
Fix tests for ABI incompatible binary error messags
Diffstat (limited to 'test/-ext-')
-rw-r--r-- | test/-ext-/test_abi.rb | 6 |
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 |