diff options
Diffstat (limited to 'spec/ruby/core/io/reopen_spec.rb')
-rw-r--r-- | spec/ruby/core/io/reopen_spec.rb | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/spec/ruby/core/io/reopen_spec.rb b/spec/ruby/core/io/reopen_spec.rb index 53fcc9dede..84c23472b7 100644 --- a/spec/ruby/core/io/reopen_spec.rb +++ b/spec/ruby/core/io/reopen_spec.rb @@ -145,23 +145,6 @@ describe "IO#reopen with a String" do File.read(@other_name).should == "new data" end - # File descriptor numbers are not predictable in multi-threaded code; - # MJIT will be opening/closing files the background - without_feature :mjit do - it "closes the file descriptor obtained by opening the new file" do - @io = new_io @name, "w" - - @other_io = File.open @other_name, "w" - max = @other_io.fileno - @other_io.close - - @io.reopen @other_name - - @other_io = File.open @other_name, "w" - @other_io.fileno.should == max - end - end - it "always resets the close-on-exec flag to true on non-STDIO objects" do @io = new_io @name, "w" |