[前][次][番号順一覧][スレッド一覧]

ruby-changes:72576

From: Nobuyoshi <ko1@a...>
Date: Sun, 17 Jul 2022 10:18:25 +0900 (JST)
Subject: [ruby-changes:72576] d010eba2f4 (master): Fix tests for ABI incompatible binary error messags

https://git.ruby-lang.org/ruby.git/commit/?id=d010eba2f4

From d010eba2f42f6a1ddae77d4822e5681523d561db Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Sun, 17 Jul 2022 10:18:08 +0900
Subject: Fix tests for ABI incompatible binary error messags

---
 test/-ext-/test_abi.rb | 6 ++++--
 1 file 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 https://github.com/ruby/ruby/blob/trunk/test/-ext-/test_abi.rb#L6
 
     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 https://github.com/ruby/ruby/blob/trunk/test/-ext-/test_abi.rb#L24
 
     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
 
-- 
cgit v1.2.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]