aboutsummaryrefslogtreecommitdiffstats
path: root/test/ruby/test_process.rb
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-12-27 12:24:03 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-12-27 12:24:03 +0000
commit885191142eb75095d68bcda5cc169ac8adbf687c (patch)
tree3b1ca766ca0467e410d3e6cd62dacdf78ea9cbff /test/ruby/test_process.rb
parent46e461212ab17c1befd9362f4e1f0527296c17e0 (diff)
downloadruby-885191142eb75095d68bcda5cc169ac8adbf687c.tar.gz
* test/ruby/test_process.rb (TestProcess#test_execopts_open_chdir_m17n_path):
test for r53346, r53347 and r53348. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53349 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_process.rb')
-rw-r--r--test/ruby/test_process.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/ruby/test_process.rb b/test/ruby/test_process.rb
index ca35d151a9..c8b4b7d343 100644
--- a/test/ruby/test_process.rb
+++ b/test/ruby/test_process.rb
@@ -425,6 +425,16 @@ class TestProcess < Test::Unit::TestCase
}
end
+ def test_execopts_open_chdir_m17n_path
+ with_tmpchdir {|d|
+ Dir.mkdir "テスト"
+ system(*PWD, :chdir => "テスト", :out => "open_chdir_テスト")
+ assert_file.exist?("open_chdir_テスト")
+ assert_file.not_exist?("テスト/open_chdir_テスト")
+ assert_equal("#{d}/テスト", File.read("open_chdir_テスト").chomp.encode(__ENCODING__))
+ }
+ end
+
def test_execopts_open_failure
with_tmpchdir {|d|
assert_raise_with_message(Errno::ENOENT, %r"d/notexist") {