summaryrefslogtreecommitdiff
path: root/test/zlib/test_zlib.rb
diff options
context:
space:
mode:
authorYusuke Endoh <mame@ruby-lang.org>2021-03-23 12:20:58 +0900
committerYusuke Endoh <mame@ruby-lang.org>2021-03-23 12:20:58 +0900
commit81d52978d03d009c9061d6a6ce1fee3dbd800b83 (patch)
tree85c8652b309bb99c6d529be8afadae90b65e197b /test/zlib/test_zlib.rb
parent17550c6400f7fd1ba9985476abf4c92af5393519 (diff)
test/zlib/test_zlib.rb: stop a failure on armv7l
The platform defines a constant File::TMPFILE, but it seems unavailable (maybe depending on the file system?). http://rubyci.s3.amazonaws.com/scw-9d6766/ruby-master/log/20210322T171707Z.fail.html.gz This change adds some rescue cluases to the test, copied from test/ruby/test_file.rb.
Diffstat (limited to 'test/zlib/test_zlib.rb')
-rw-r--r--test/zlib/test_zlib.rb6
1 files changed, 6 insertions, 0 deletions
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