diff --git a/test/zlib/test_zlib.rb b/test/zlib/test_zlib.rb index 83ce37572e..af3578a0ee 100644 --- a/test/zlib/test_zlib.rb +++ b/test/zlib/test_zlib.rb @@ -743,6 +743,12 @@ if defined? Zlib gz0.close gz1.close end + rescue Errno::EINVAL + skip 'O_TMPFILE not supported (EINVAL)' + rescue Errno::EISDIR + skip 'O_TMPFILE not supported (EISDIR)' + rescue Errno::EOPNOTSUPP + skip 'O_TMPFILE not supported (EOPNOTSUPP)' end end end