summaryrefslogtreecommitdiff
path: root/test/-ext-/win32/test_dln.rb
diff options
context:
space:
mode:
authorshirosaki <shirosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-09-28 13:55:48 +0000
committershirosaki <shirosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-09-28 13:55:48 +0000
commitff6573b696dc458965c9a93afd9edfaac7d733d4 (patch)
treec6f8c1f82666653a25fa5442ed0a1bc51b718077 /test/-ext-/win32/test_dln.rb
parentfd50c2ee44e8ed1b1bc9bbc945638a121c4c8468 (diff)
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
Diffstat (limited to 'test/-ext-/win32/test_dln.rb')
-rw-r--r--test/-ext-/win32/test_dln.rb2
1 files changed, 1 insertions, 1 deletions
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