mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
This commit is contained in:
parent
1c5fd2bff0
commit
41d36d2ce2
1 changed files with 13 additions and 11 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue