Blame SOURCES/ruby-2.6.0-rescue-on-EISDIR-in-test_open_tempfile_path.patch

222d09
From 785ace12f903cfae848ea38d7b8a0cb3439379f3 Mon Sep 17 00:00:00 2001
222d09
From: naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>
222d09
Date: Tue, 11 Dec 2018 08:44:00 +0000
222d09
Subject: [PATCH] CentOS-7 (1810)'s header has O_TMPFILE but kernel doesn't
222d09
 support it
222d09
222d09
http://rubyci.s3.amazonaws.com/centos7/ruby-trunk/log/20181206T080003Z.diff.html.gz
222d09
222d09
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66334 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
222d09
---
222d09
 test/ruby/test_file.rb | 2 ++
222d09
 1 file changed, 2 insertions(+)
222d09
222d09
diff --git a/test/ruby/test_file.rb b/test/ruby/test_file.rb
222d09
index 89757287d194..5e9574cf32e3 100644
222d09
--- a/test/ruby/test_file.rb
222d09
+++ b/test/ruby/test_file.rb
e5acbf
@@ -502,6 +502,8 @@ def test_open_tempfile_path
222d09
         io = File.open(tmpdir, File::RDWR | File::TMPFILE)
222d09
       rescue Errno::EINVAL
222d09
         skip 'O_TMPFILE not supported (EINVAL)'
222d09
+      rescue Errno::EISDIR
222d09
+        skip 'O_TMPFILE not supported (EISDIR)'
222d09
       rescue Errno::EOPNOTSUPP
222d09
         skip 'O_TMPFILE not supported (EOPNOTSUPP)'
222d09
       end