mirror of
https://github.com/ruby/ruby.git
synced 2025-09-19 18:43:59 +02:00
* process.c (rb_run_exec_options_err): chdir at last to interpret
relative pathnames from the current directory of the parent process. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34892 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
cb5217088b
commit
61c148723d
3 changed files with 35 additions and 20 deletions
|
@ -327,6 +327,16 @@ class TestProcess < Test::Unit::TestCase
|
|||
}
|
||||
end
|
||||
|
||||
def test_execopts_open_chdir
|
||||
with_tmpchdir {|d|
|
||||
Dir.mkdir "foo"
|
||||
system(*PWD, :chdir => "foo", :out => "open_chdir_test")
|
||||
assert(File.exist?("open_chdir_test"))
|
||||
assert(!File.exist?("foo/open_chdir_test"))
|
||||
assert_equal("#{d}/foo", File.read("open_chdir_test").chomp)
|
||||
}
|
||||
end
|
||||
|
||||
UMASK = [RUBY, '-e', 'printf "%04o\n", File.umask']
|
||||
|
||||
def test_execopts_umask
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue