ruby-changes:47941
From: shirosaki <ko1@a...>
Date: Thu, 28 Sep 2017 22:55:53 +0900 (JST)
Subject: [ruby-changes:47941] shirosaki:r60056 (trunk): test_dln.rb: fix path separator on MinGW
shirosaki 2017-09-28 22:55:48 +0900 (Thu, 28 Sep 2017) New Revision: 60056 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=60056 Log: test_dln.rb: fix path separator on MinGW * test/-ext-/win32/test_dln.rb (TestDln#test_check_imported): RbConfig::CONFIG["PATH_SEPARATOR"] is : which is a separator on msys2 shell building ruby. Use File::PATH_SEPARATOR ; on test. [Bug #13642] [ruby-core:81623] Modified files: trunk/test/-ext-/win32/test_dln.rb Index: test/-ext-/win32/test_dln.rb =================================================================== --- test/-ext-/win32/test_dln.rb (revision 60055) +++ test/-ext-/win32/test_dln.rb (revision 60056) @@ -11,7 +11,7 @@ module Bug https://github.com/ruby/ruby/blob/trunk/test/-ext-/win32/test_dln.rb#L11 so = ::File.expand_path("../ext/-test-/win32/dln/dlntest.dll", ::EnvUtil.rubybin) assert_send([::File, :file?, so]) path = ::ENV['PATH'] - path = ::File.dirname(so) + ::RbConfig::CONFIG["PATH_SEPARATOR"] + path + path = ::File.dirname(so) + ::File::PATH_SEPARATOR + path assert_in_out_err([{'PATH'=>path}, '-r-test-/win32/dln', '-eexit'], '', [], [], bug, timeout: 10) end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/