mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
This commit is contained in:
parent
1ae52fcddf
commit
def040f6c3
1 changed files with 4 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue