diff options
| author | Sorah Fukumori <her@sorah.jp> | 2025-12-25 21:35:15 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-12-25 12:35:15 +0000 |
| commit | 099da884fe95ccf6c684a1563ed1c4b0fd8e1196 (patch) | |
| tree | 771d93ea4815d04734bd498ddacf81e302ac11ba /test/ruby | |
| parent | 6a66129d6c289b0da99cd89592f5ee948da6f381 (diff) | |
test_box: avoid failure with --program-suffix (#15734)
Diffstat (limited to 'test/ruby')
| -rw-r--r-- | test/ruby/test_box.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/ruby/test_box.rb b/test/ruby/test_box.rb index a531afa679..28c9dd02b0 100644 --- a/test/ruby/test_box.rb +++ b/test/ruby/test_box.rb @@ -1,10 +1,11 @@ # frozen_string_literal: true require 'test/unit' +require 'rbconfig' class TestBox < Test::Unit::TestCase EXPERIMENTAL_WARNING_LINE_PATTERNS = [ - /ruby(\.exe)?: warning: Ruby::Box is experimental, and the behavior may change in the future!/, + /#{RbConfig::CONFIG["ruby_install_name"] || "ruby"}(\.exe)?: warning: Ruby::Box is experimental, and the behavior may change in the future!/, %r{See https://docs.ruby-lang.org/en/(master|\d\.\d)/Ruby/Box.html for known issues, etc.} ] ENV_ENABLE_BOX = {'RUBY_BOX' => '1', 'TEST_DIR' => __dir__} |
