summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-09-22 06:35:27 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-09-22 06:35:27 +0000
commit958c04898c01620d7b1f9f04aa888a4a5ac5aec8 (patch)
tree029b1b9794ebeb3c255437c4968bb5e9e55621fd /test
parent0e0bff15897a7da6070d1cb8495f14c1780a1eb7 (diff)
dlntest.dll: move
* ext/-test-/win32/dln/{depend,extconf.rb} (dlntest.dll): make under the extension directory, instead of the top directory. * test/-ext-/win32/test_dln.rb (test_check_imported): explicit PATH environment variable to load the DLL. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56203 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r--test/-ext-/win32/test_dln.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/-ext-/win32/test_dln.rb b/test/-ext-/win32/test_dln.rb
index fd5e453719..a6eedce164 100644
--- a/test/-ext-/win32/test_dln.rb
+++ b/test/-ext-/win32/test_dln.rb
@@ -8,7 +8,11 @@ module Bug
class TestDln < Test::Unit::TestCase
def test_check_imported
bug = '[Bug #6303]'
- assert_in_out_err(['-r-test-/win32/dln', '-eexit'], '', [], [], bug, timeout: 10)
+ 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
+ assert_in_out_err([{'PATH'=>path}, '-r-test-/win32/dln', '-eexit'], '', [], [], bug, timeout: 10)
end
def test_nonascii_load