ruby-changes:55141
From: k0kubun <ko1@a...>
Date: Wed, 27 Mar 2019 22:31:41 +0900 (JST)
Subject: [ruby-changes:55141] k0kubun:r67348 (trunk): Skip EBADF spec in MJIT test for now
k0kubun 2019-03-27 22:31:36 +0900 (Wed, 27 Mar 2019) New Revision: 67348 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=67348 Log: Skip EBADF spec in MJIT test for now Modified files: trunk/spec/ruby/core/file/open_spec.rb Index: spec/ruby/core/file/open_spec.rb =================================================================== --- spec/ruby/core/file/open_spec.rb (revision 67347) +++ spec/ruby/core/file/open_spec.rb (revision 67348) @@ -165,19 +165,21 @@ describe "File.open" do https://github.com/ruby/ruby/blob/trunk/spec/ruby/core/file/open_spec.rb#L165 File.exist?(@file).should == true end - it "opens a file with a file descriptor d and a block" do - @fh = File.open(@file) - @fh.should be_kind_of(File) + without_feature :mjit do # [ruby-core:90895] MJIT worker may leave fd open in a forked child. TODO: consider acquiring GVL from MJIT worker. + it "opens a file with a file descriptor d and a block" do + @fh = File.open(@file) + @fh.should be_kind_of(File) - lambda { - File.open(@fh.fileno) do |fh| - @fd = fh.fileno - @fh.close - end - }.should raise_error(Errno::EBADF) - lambda { File.open(@fd) }.should raise_error(Errno::EBADF) + lambda { + File.open(@fh.fileno) do |fh| + @fd = fh.fileno + @fh.close + end + }.should raise_error(Errno::EBADF) + lambda { File.open(@fd) }.should raise_error(Errno::EBADF) - File.exist?(@file).should == true + File.exist?(@file).should == true + end end it "opens a file that no exists when use File::WRONLY mode" do -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/