* test/ruby/test_process.rb: Process.exec raised EACCES on Linux

3.5.0-17-generic.  This is a temporal fix to rescue that exception.
  Needs kosaki's review.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37404 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
mame 2012-11-01 12:33:51 +00:00
parent 0c4a27a5a2
commit de08204297
2 changed files with 7 additions and 1 deletions

View file

@ -351,7 +351,7 @@ class TestProcess < Test::Unit::TestCase
prog = "/nonexistent"
begin
Process.exec({"mgg" => "mggoo"}, [prog, prog])
rescue Errno::ENOENT
rescue Errno::ENOENT, Errno::EACCES
end
open('out', 'w') {|f|
f.print ENV["mgg"].inspect