Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

In OpenBSD exec raises EISDIR, not EACCES, when passed a directory

  • Loading branch information...
commit f718251494ab5f8540bcbf1c7c5c1cec7b43c6eb 1 parent 2acbc7d
@tonysidaway tonysidaway authored
Showing with 10 additions and 2 deletions.
  1. +10 −2 spec/ruby/shared/process/exec.rb
View
12 spec/ruby/shared/process/exec.rb
@@ -16,8 +16,16 @@
lambda { @object.exec __FILE__ }.should raise_error(Errno::EACCES)
end
- it "raises Errno::EACCES when passed a directory" do
- lambda { @object.exec File.dirname(__FILE__) }.should raise_error(Errno::EACCES)
+ platform_is_not :openbsd do
+ it "raises Errno::EACCES when passed a directory" do
+ lambda { @object.exec File.dirname(__FILE__) }.should raise_error(Errno::EACCES)
+ end
+ end
+
+ platform_is :openbsd do
+ it "raises Errno::EISDIR when passed a directory" do
+ lambda { @object.exec File.dirname(__FILE__) }.should raise_error(Errno::EISDIR)
+ end
end
it "runs the specified command, replacing current process" do
Please sign in to comment.
Something went wrong with that request. Please try again.