diff options
author | Nobuyoshi Nakada <[email protected]> | 2024-02-28 17:53:02 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2024-02-28 17:53:02 +0900 |
commit | eb6eb1d4e8572fffd7bce6789eb8e87669293eef (patch) | |
tree | 88bcd2c58b988d87b2fc33e50fd2c479164556f6 /test/ruby/test_rubyoptions.rb | |
parent | 8316cb213c2a32fbb7cb7314e2595730568181ad (diff) |
Fix crash report path test on Windows
Diffstat (limited to 'test/ruby/test_rubyoptions.rb')
-rw-r--r-- | test/ruby/test_rubyoptions.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/ruby/test_rubyoptions.rb b/test/ruby/test_rubyoptions.rb index 03902e79f4..5eede5c4ba 100644 --- a/test/ruby/test_rubyoptions.rb +++ b/test/ruby/test_rubyoptions.rb @@ -929,7 +929,8 @@ class TestRubyOptions < Test::Unit::TestCase def test_crash_report_executable_path omit if EnvUtil.rubybin.size > 245 status, report = assert_crash_report("%E.%p.log") - assert_equal("#{EnvUtil.rubybin.tr('/', '!')}.#{status.pid}.log", report) + path = EnvUtil.rubybin.sub(/\A\w\K:[\/\\]/, '!').tr_s('/', '!') + assert_equal("#{path}.#{status.pid}.log", report) end def test_crash_report_script_path |