diff options
Diffstat (limited to 'test/ruby/test_process.rb')
| -rw-r--r-- | test/ruby/test_process.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/ruby/test_process.rb b/test/ruby/test_process.rb index a1c5822417..3dab8e0bfa 100644 --- a/test/ruby/test_process.rb +++ b/test/ruby/test_process.rb @@ -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 |
