[前][次][番号順一覧][スレッド一覧]

ruby-changes:49200

From: ko1 <ko1@a...>
Date: Mon, 18 Dec 2017 13:42:59 +0900 (JST)
Subject: [ruby-changes:49200] ko1:r61318 (trunk): check EOPNOTSUPP.

ko1	2017-12-18 13:42:53 +0900 (Mon, 18 Dec 2017)

  New Revision: 61318

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=61318

  Log:
    check EOPNOTSUPP.
    
    * test/ruby/test_file.rb (test_open_tempfile_path): skip EOPNOTSUPP
      (observed on Ubuntu 16 on Docker).

  Modified files:
    trunk/test/ruby/test_file.rb
Index: test/ruby/test_file.rb
===================================================================
--- test/ruby/test_file.rb	(revision 61317)
+++ test/ruby/test_file.rb	(revision 61318)
@@ -494,6 +494,8 @@ class TestFile < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_file.rb#L494
         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"

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]