summaryrefslogtreecommitdiff
path: root/spec/ruby/core/io/reopen_spec.rb
diff options
context:
space:
mode:
authorBenoit Daloze <eregontp@gmail.com>2019-04-28 23:20:11 +0200
committerBenoit Daloze <eregontp@gmail.com>2019-04-28 23:20:11 +0200
commit79671ec57e59091260a0bc3d40a31d31d9c72a94 (patch)
tree2f59a8727b8f63f9e79d50352fa4f78a7cc00234 /spec/ruby/core/io/reopen_spec.rb
parent994833085ae06afbe94d30ab183d80e0234fbe14 (diff)
Update to ruby/spec@7de852d
Diffstat (limited to 'spec/ruby/core/io/reopen_spec.rb')
-rw-r--r--spec/ruby/core/io/reopen_spec.rb17
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"