We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 78658aa commit 1bed54dCopy full SHA for 1bed54d
test/zlib/test_zlib.rb
@@ -801,7 +801,8 @@ def test_path_tmpfile
801
gz.write "hi"
802
gz.close
803
804
- File.open(Dir.mktmpdir, File::RDWR | File::TMPFILE) do |io|
+ tmpdir = Dir.mktmpdir("zlib_file_tmpfile")
805
+ File.open(tmpdir, File::RDWR | File::TMPFILE) do |io|
806
io.write sio.string
807
io.rewind
808
@@ -825,6 +826,8 @@ def test_path_tmpfile
825
826
omit 'O_TMPFILE not supported (EISDIR)'
827
rescue Errno::EOPNOTSUPP
828
omit 'O_TMPFILE not supported (EOPNOTSUPP)'
829
+ ensure
830
+ Dir.rmdir(tmpdir) if tmpdir
831
end
832
833
0 commit comments