зеркало из https://github.com/github/ruby.git
The exception raised when exec/spawn unexecutable file on Windows is various
It seems that depend on OS version or filesystem git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58706 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
a3960d0a60
Коммит
8675dd7b53
|
@ -21,8 +21,8 @@ describe "Process.exec" do
|
|||
end
|
||||
|
||||
platform_is :windows do
|
||||
it "raises Errno::ENOEXEC when the file is not an executable file" do
|
||||
lambda { Process.exec __FILE__ }.should raise_error(Errno::ENOEXEC)
|
||||
it "raises Errno::EACCES or Errno::ENOEXEC when the file is not an executable file" do
|
||||
lambda { Process.exec __FILE__ }.should raise_error(->(e){[Errno::EACCES, Errno::ENOEXEC].find{|exc| exc === e}})
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -575,8 +575,8 @@ describe "Process.spawn" do
|
|||
end
|
||||
|
||||
platform_is :windows do
|
||||
it "raises Errno::ENOEXEC when the file is not an executable file" do
|
||||
lambda { Process.spawn __FILE__ }.should raise_error(Errno::ENOEXEC)
|
||||
it "raises Errno::EACCES or Errno::ENOEXEC when the file is not an executable file" do
|
||||
lambda { Process.spawn __FILE__ }.should raise_error(->(e){[Errno::EACCES, Errno::ENOEXEC].find{|exc| exc === e}})
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Загрузка…
Ссылка в новой задаче