diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-12-18 04:42:53 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-12-18 04:42:53 +0000 |
commit | c740951f250c4c4ad3b93e01aed92ec370e36e41 (patch) | |
tree | 0a8afbdc98753d4846a54782fd1ff76cc177b312 /test/ruby/test_file.rb | |
parent | 2ad35b31bb844bee95bc29d85a0508c10f99d428 (diff) | |
download | ruby-c740951f250c4c4ad3b93e01aed92ec370e36e41.tar.gz |
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.rb | 2 |
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" |