[前][次][番号順一覧][スレッド一覧]

ruby-changes:60302

From: Yusuke <ko1@a...>
Date: Thu, 5 Mar 2020 18:27:10 +0900 (JST)
Subject: [ruby-changes:60302] 17d5efa4fe (master): spec/ruby/core/process/exec_spec.rb: remove a guard for openbsd

https://git.ruby-lang.org/ruby.git/commit/?id=17d5efa4fe

From 17d5efa4fefdceee0e0d3c810b9fee1cee2e2628 Mon Sep 17 00:00:00 2001
From: Yusuke Endoh <mame@r...>
Date: Thu, 5 Mar 2020 18:24:46 +0900
Subject: 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

diff --git a/spec/ruby/core/process/exec_spec.rb b/spec/ruby/core/process/exec_spec.rb
index 5a6e3fc..0a2c2f7 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 https://github.com/ruby/ruby/blob/trunk/spec/ruby/core/process/exec_spec.rb#L29
     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
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]