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?).
20210322
T171707Z.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
|
gz0.close
|
||||||
gz1.close
|
gz1.close
|
||||||
end
|
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
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue