mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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.
This commit is contained in:
parent
17550c6400
commit
81d52978d0
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue