diff options
author | Yusuke Endoh <mame@ruby-lang.org> | 2020-03-05 18:24:46 +0900 |
---|---|---|
committer | Yusuke Endoh <mame@ruby-lang.org> | 2020-03-05 18:25:47 +0900 |
commit | 17d5efa4fefdceee0e0d3c810b9fee1cee2e2628 (patch) | |
tree | 12007a2e562d74bbb2661bb8b3910a62d9e30749 | |
parent | 7d05f98a8481f3835eb1c4568e243d1eea9fd4c6 (diff) | |
download | ruby-17d5efa4fefdceee0e0d3c810b9fee1cee2e2628.tar.gz |
spec/ruby/core/process/exec_spec.rb: remove a guard for openbsd
openbsd current seems to behave the same as other OSs.
https://rubyci.org/logs/rubyci.s3.amazonaws.com/openbsd-current/ruby-master/log/20200305T063005Z.fail.html.gz
-rw-r--r-- | spec/ruby/core/process/exec_spec.rb | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/spec/ruby/core/process/exec_spec.rb b/spec/ruby/core/process/exec_spec.rb index 5a6e3fc1a4..0a2c2f77e7 100644 --- a/spec/ruby/core/process/exec_spec.rb +++ b/spec/ruby/core/process/exec_spec.rb @@ -29,16 +29,8 @@ describe "Process.exec" do end end - platform_is_not :openbsd do - it "raises Errno::EACCES when passed a directory" do - -> { Process.exec File.dirname(__FILE__) }.should raise_error(Errno::EACCES) - end - end - - platform_is :openbsd do - it "raises Errno::EISDIR when passed a directory" do - -> { Process.exec File.dirname(__FILE__) }.should raise_error(Errno::EISDIR) - end + it "raises Errno::EACCES when passed a directory" do + -> { Process.exec File.dirname(__FILE__) }.should raise_error(Errno::EACCES) end it "runs the specified command, replacing current process" do |