diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2019-02-22 06:35:44 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2019-02-22 06:35:44 +0000 |
commit | def040f6c330694e4f620a44b7790444d0f59157 (patch) | |
tree | 65da116820dfdba7c9273d3bd1a6dc0ae54d65f7 /test/ruby/test_file_exhaustive.rb | |
parent | 1ae52fcddff2440ee96013c020c41844332fee38 (diff) |
Skip EPERM, when statx(2) is wholely blocked
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67120 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_file_exhaustive.rb')
-rw-r--r-- | test/ruby/test_file_exhaustive.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/ruby/test_file_exhaustive.rb b/test/ruby/test_file_exhaustive.rb index eb8dd73c21..02890bb2a7 100644 --- a/test/ruby/test_file_exhaustive.rb +++ b/test/ruby/test_file_exhaustive.rb @@ -630,8 +630,11 @@ class TestFileExhaustive < Test::Unit::TestCase 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) |