summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNobuyoshi Nakada <[email protected]>2024-04-20 19:45:01 +0900
committergit <[email protected]>2024-04-20 10:53:41 +0000
commit2b11bcb84ec0e9326ce03a2ec8f0ed2ee349d3c1 ()
tree99f784ec037258d3d254190b71935fb91ec85aaa
parentaf169472c791c1ed97f8e4397c0b8628dc6a6c50 (diff)
[ruby/zlib] Clear temporary directory
https://.com/ruby/zlib/commit/1bed54dcf7
-rw-r--r--test/zlib/test_zlib.rb5
1 files changed, 4 insertions, 1 deletions
@@ -801,7 +801,8 @@ if defined? Zlib
gz.write "hi"
gz.close
- File.open(Dir.mktmpdir, File::RDWR | File::TMPFILE) do |io|
io.write sio.string
io.rewind
@@ -825,6 +826,8 @@ if defined? Zlib
omit 'O_TMPFILE not supported (EISDIR)'
rescue Errno::EOPNOTSUPP
omit 'O_TMPFILE not supported (EOPNOTSUPP)'
end
end
end