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

ruby-changes:46561

From: usa <ko1@a...>
Date: Fri, 12 May 2017 17:11:38 +0900 (JST)
Subject: [ruby-changes:46561] usa:r58676 (trunk): Skip on Windows because it always fails

usa	2017-05-12 17:11:35 +0900 (Fri, 12 May 2017)

  New Revision: 58676

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=58676

  Log:
    Skip on Windows because it always fails
    
    On Windows, when invoking ruby via runruby.rb, the pid of invoker and of invokee
    are diffrent.  Therefore, this spec always fails.

  Modified files:
    trunk/spec/rubyspec/core/process/status/pid_spec.rb
Index: spec/rubyspec/core/process/status/pid_spec.rb
===================================================================
--- spec/rubyspec/core/process/status/pid_spec.rb	(revision 58675)
+++ spec/rubyspec/core/process/status/pid_spec.rb	(revision 58676)
@@ -1,13 +1,15 @@ https://github.com/ruby/ruby/blob/trunk/spec/rubyspec/core/process/status/pid_spec.rb#L1
 require File.expand_path('../../../../spec_helper', __FILE__)
 
-describe "Process::Status#pid" do
+platform_is_not :windows do
+  describe "Process::Status#pid" do
 
-  before :each do
-    @pid = ruby_exe("print $$").to_i
-  end
+    before :each do
+      @pid = ruby_exe("print $$").to_i
+    end
 
-  it "returns the pid of the process" do
-    $?.pid.should == @pid
-  end
+    it "returns the pid of the process" do
+      $?.pid.should == @pid
+    end
 
+  end
 end

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

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