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
@ -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…
x
Reference in New Issue
Block a user