From ff6573b696dc458965c9a93afd9edfaac7d733d4 Mon Sep 17 00:00:00 2001 From: shirosaki Date: Thu, 28 Sep 2017 13:55:48 +0000 Subject: 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] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60056 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/-ext-/win32/test_dln.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') diff --git a/test/-ext-/win32/test_dln.rb b/test/-ext-/win32/test_dln.rb index 3624346a56..e8f68ac4d4 100644 --- a/test/-ext-/win32/test_dln.rb +++ b/test/-ext-/win32/test_dln.rb @@ -11,7 +11,7 @@ module Bug 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 -- cgit v1.2.3