From c740951f250c4c4ad3b93e01aed92ec370e36e41 Mon Sep 17 00:00:00 2001 From: ko1 Date: Mon, 18 Dec 2017 04:42:53 +0000 Subject: [PATCH] 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 --- test/ruby/test_file.rb | 2 ++ 1 file changed, 2 insertions(+) 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"