summaryrefslogtreecommitdiff
path: root/test/ruby/test_rubyoptions.rb
diff options
context:
space:
mode:
authorNobuyoshi Nakada <[email protected]>2024-02-28 17:53:02 +0900
committerNobuyoshi Nakada <[email protected]>2024-02-28 17:53:02 +0900
commiteb6eb1d4e8572fffd7bce6789eb8e87669293eef (patch)
tree88bcd2c58b988d87b2fc33e50fd2c479164556f6 /test/ruby/test_rubyoptions.rb
parent8316cb213c2a32fbb7cb7314e2595730568181ad (diff)
Fix crash report path test on Windows
Diffstat (limited to 'test/ruby/test_rubyoptions.rb')
-rw-r--r--test/ruby/test_rubyoptions.rb3
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