From eb6eb1d4e8572fffd7bce6789eb8e87669293eef Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Wed, 28 Feb 2024 17:53:02 +0900 Subject: Fix crash report path test on Windows --- test/ruby/test_rubyoptions.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test/ruby') 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 -- cgit v1.2.3