diff options
-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 |