ruby-changes:65627
From: Yusuke <ko1@a...>
Date: Tue, 23 Mar 2021 12:23:34 +0900 (JST)
Subject: [ruby-changes:65627] 81d52978d0 (master): test/zlib/test_zlib.rb: stop a failure on armv7l
https://git.ruby-lang.org/ruby.git/commit/?id=81d52978d0 From 81d52978d03d009c9061d6a6ce1fee3dbd800b83 Mon Sep 17 00:00:00 2001 From: Yusuke Endoh <mame@r...> Date: Tue, 23 Mar 2021 12:20:58 +0900 Subject: 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. --- test/zlib/test_zlib.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/zlib/test_zlib.rb b/test/zlib/test_zlib.rb index 83ce375..af3578a 100644 --- a/test/zlib/test_zlib.rb +++ b/test/zlib/test_zlib.rb @@ -743,6 +743,12 @@ if defined? Zlib https://github.com/ruby/ruby/blob/trunk/test/zlib/test_zlib.rb#L743 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 -- cgit v1.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/