diff options
author | k0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2019-03-27 13:31:36 +0000 |
---|---|---|
committer | k0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2019-03-27 13:31:36 +0000 |
commit | 41d36d2ce2a900bbb6812e23c13f35ee20f93d31 (patch) | |
tree | ac4a2e0918ef6b67cece45bd46e8e7395f083155 /spec | |
parent | 1c5fd2bff0e232aadf4b9486d086ccb6af87ceb6 (diff) | |
download | ruby-41d36d2ce2a900bbb6812e23c13f35ee20f93d31.tar.gz |
Skip EBADF spec in MJIT test for now
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67348 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'spec')
-rw-r--r-- | spec/ruby/core/file/open_spec.rb | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/spec/ruby/core/file/open_spec.rb b/spec/ruby/core/file/open_spec.rb index 931ff2d239..9e98d3d88a 100644 --- a/spec/ruby/core/file/open_spec.rb +++ b/spec/ruby/core/file/open_spec.rb @@ -165,19 +165,21 @@ describe "File.open" do 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 |