Skip to content

Commit b54d65b

Browse files
committed
Merge branch 'master-3.0' into dist/3.0/bullseye
2 parents 18f3bc4 + ef2a93c commit b54d65b

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

debian/patches/series

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ exclude-several-tests-unstable-in-Docker.patch
66
Fix-FTBFS-on-x32-misdetected-as-i386-or-amd64.patch
77
TestProcess-disable-gems-to-disable-rubygems_integration.patch
88
ruby_default_arch.m4-don-t-require-arhitectures-to-be-kno.patch
9+
test-zlib-test_zlib.rb-stop-a-failure-on-armv7l.patch
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
From: Yusuke Endoh <[email protected]>
2+
Date: Tue, 23 Mar 2021 12:20:58 +0900
3+
Subject: test/zlib/test_zlib.rb: stop a failure on armv7l
4+
5+
The platform defines a constant File::TMPFILE, but it seems unavailable
6+
(maybe depending on the file system?).
7+
8+
http://rubyci.s3.amazonaws.com/scw-9d6766/ruby-master/log/20210322T171707Z.fail.html.gz
9+
10+
This change adds some rescue cluases to the test, copied from
11+
test/ruby/test_file.rb.
12+
---
13+
test/zlib/test_zlib.rb | 6 ++++++
14+
1 file changed, 6 insertions(+)
15+
16+
diff --git a/test/zlib/test_zlib.rb b/test/zlib/test_zlib.rb
17+
index c469d24..93c3b2d 100644
18+
--- a/test/zlib/test_zlib.rb
19+
+++ b/test/zlib/test_zlib.rb
20+
@@ -806,6 +806,12 @@ if defined? Zlib
21+
gz = Zlib::GzipReader.new(io)
22+
assert_raise(NoMethodError) { gz.path }
23+
end
24+
+ rescue Errno::EINVAL
25+
+ skip 'O_TMPFILE not supported (EINVAL)'
26+
+ rescue Errno::EISDIR
27+
+ skip 'O_TMPFILE not supported (EISDIR)'
28+
+ rescue Errno::EOPNOTSUPP
29+
+ skip 'O_TMPFILE not supported (EOPNOTSUPP)'
30+
end
31+
end
32+
end

0 commit comments

Comments
 (0)