mirror of
https://github.com/ruby/ruby.git
synced 2025-09-19 18:43:59 +02:00
* process.c (rb_f_spawn): use correct command name for the error
message. [ruby-dev:41395] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27985 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
b4f1eaa493
commit
d837ce5eda
4 changed files with 53 additions and 22 deletions
|
@ -236,6 +236,17 @@ class TestProcess < Test::Unit::TestCase
|
|||
system({"F=O"=>"BAR"}, *TRUECOMMAND)
|
||||
}
|
||||
|
||||
with_tmpchdir {|d|
|
||||
prog = "#{d}/notexist"
|
||||
e = assert_raise(Errno::ENOENT) {
|
||||
Process.wait Process.spawn({"FOO"=>"BAR"}, prog)
|
||||
}
|
||||
assert_equal(prog, e.message.sub(/.* - /, ''))
|
||||
e = assert_raise(Errno::ENOENT) {
|
||||
Process.wait Process.spawn({"FOO"=>"BAR"}, [prog, "blar"])
|
||||
}
|
||||
assert_equal(prog, e.message.sub(/.* - /, ''))
|
||||
}
|
||||
h = {}
|
||||
cmd = [h, RUBY]
|
||||
(ENV.keys + MANDATORY_ENVS).each do |k|
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue