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

ruby-changes:54915

From: nobu <ko1@a...>
Date: Fri, 22 Feb 2019 15:35:58 +0900 (JST)
Subject: [ruby-changes:54915] nobu:r67120 (trunk): Skip EPERM, when statx(2) is wholely blocked

nobu	2019-02-22 15:35:44 +0900 (Fri, 22 Feb 2019)

  New Revision: 67120

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

  Log:
    Skip EPERM, when statx(2) is wholely blocked

  Modified files:
    trunk/test/ruby/test_file_exhaustive.rb
Index: test/ruby/test_file_exhaustive.rb
===================================================================
--- test/ruby/test_file_exhaustive.rb	(revision 67119)
+++ test/ruby/test_file_exhaustive.rb	(revision 67120)
@@ -630,8 +630,11 @@ class TestFileExhaustive < Test::Unit::T https://github.com/ruby/ruby/blob/trunk/test/ruby/test_file_exhaustive.rb#L630
       assert_kind_of(Time, t1)
       assert_kind_of(Time, t2)
       assert_equal(t1, t2)
-    rescue Errno::ENOSYS, Errno::EPERM
+    rescue Errno::ENOSYS
       # ignore unsupporting filesystems
+    rescue Errno::EPERM
+      # Docker prohibits statx syscall by the default.
+      skip("statx(2) is prohibited by seccomp")
     end
     assert_raise(Errno::ENOENT) { File.birthtime(nofile) }
   end if File.respond_to?(:birthtime)

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

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