mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
This commit is contained in:
parent
fd50c2ee44
commit
ff6573b696
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue