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 | bb7652742717293383be7e0774f2508b9cc2c239 (patch) | |
tree | 0a8afbdc98753d4846a54782fd1ff76cc177b312 | |
parent | f6f2a121a5675053c2e9d6904806c513102e1e66 (diff) | |
download | ruby-bb7652742717293383be7e0774f2508b9cc2c239.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
-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" |