summaryrefslogtreecommitdiff
path: root/test/ruby/test_file.rb
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-12-18 04:42:53 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-12-18 04:42:53 +0000
commitc740951f250c4c4ad3b93e01aed92ec370e36e41 (patch)
tree0a8afbdc98753d4846a54782fd1ff76cc177b312 /test/ruby/test_file.rb
parent2ad35b31bb844bee95bc29d85a0508c10f99d428 (diff)
check EOPNOTSUPP.
* test/ruby/test_file.rb (test_open_tempfile_path): skip EOPNOTSUPP (observed on Ubuntu 16 on Docker). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61318 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_file.rb')
-rw-r--r--test/ruby/test_file.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/ruby/test_file.rb b/test/ruby/test_file.rb
index 9d29bbbb65..2aa145a303 100644
--- a/test/ruby/test_file.rb
+++ b/test/ruby/test_file.rb
@@ -494,6 +494,8 @@ class TestFile < Test::Unit::TestCase
io = File.open(tmpdir, File::RDWR | File::TMPFILE)
rescue Errno::EINVAL
skip 'O_TMPFILE not supported (EINVAL)'
+ rescue Errno::EOPNOTSUPP
+ skip 'O_TMPFILE not supported (EOPNOTSUPP)'
end
io.write "foo"